generators.external-secrets.io_githubaccesstokens.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.19.0
  6. labels:
  7. external-secrets.io/component: controller
  8. name: githubaccesstokens.generators.external-secrets.io
  9. spec:
  10. group: generators.external-secrets.io
  11. names:
  12. categories:
  13. - external-secrets
  14. - external-secrets-generators
  15. kind: GithubAccessToken
  16. listKind: GithubAccessTokenList
  17. plural: githubaccesstokens
  18. singular: githubaccesstoken
  19. scope: Namespaced
  20. versions:
  21. - name: v1alpha1
  22. schema:
  23. openAPIV3Schema:
  24. description: GithubAccessToken generates ghs_ accessToken
  25. properties:
  26. apiVersion:
  27. description: |-
  28. APIVersion defines the versioned schema of this representation of an object.
  29. Servers should convert recognized schemas to the latest internal value, and
  30. may reject unrecognized values.
  31. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  32. type: string
  33. kind:
  34. description: |-
  35. Kind is a string value representing the REST resource this object represents.
  36. Servers may infer this from the endpoint the client submits requests to.
  37. Cannot be updated.
  38. In CamelCase.
  39. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  40. type: string
  41. metadata:
  42. type: object
  43. spec:
  44. description: GithubAccessTokenSpec defines the desired state to generate
  45. a GitHub access token.
  46. properties:
  47. appID:
  48. type: string
  49. auth:
  50. description: Auth configures how ESO authenticates with a Github instance.
  51. properties:
  52. privateKey:
  53. description: GithubSecretRef references a secret containing GitHub
  54. credentials.
  55. properties:
  56. secretRef:
  57. description: |-
  58. SecretKeySelector is a reference to a specific 'key' within a Secret resource.
  59. In some instances, `key` is a required field.
  60. properties:
  61. key:
  62. description: |-
  63. A key in the referenced Secret.
  64. Some instances of this field may be defaulted, in others it may be required.
  65. maxLength: 253
  66. minLength: 1
  67. pattern: ^[-._a-zA-Z0-9]+$
  68. type: string
  69. name:
  70. description: The name of the Secret resource being referred
  71. to.
  72. maxLength: 253
  73. minLength: 1
  74. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  75. type: string
  76. namespace:
  77. description: |-
  78. The namespace of the Secret resource being referred to.
  79. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  80. maxLength: 63
  81. minLength: 1
  82. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  83. type: string
  84. type: object
  85. required:
  86. - secretRef
  87. type: object
  88. required:
  89. - privateKey
  90. type: object
  91. installID:
  92. type: string
  93. permissions:
  94. additionalProperties:
  95. type: string
  96. description: Map of permissions the token will have. If omitted, defaults
  97. to all permissions the GitHub App has.
  98. type: object
  99. repositories:
  100. description: |-
  101. List of repositories the token will have access to. If omitted, defaults to all repositories the GitHub App
  102. is installed to.
  103. items:
  104. type: string
  105. type: array
  106. url:
  107. description: URL configures the GitHub instance URL. Defaults to https://github.com/.
  108. type: string
  109. required:
  110. - appID
  111. - auth
  112. - installID
  113. type: object
  114. type: object
  115. served: true
  116. storage: true
  117. subresources:
  118. status: {}