external-secrets.io_pushsecrets.yaml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.11.0
  6. creationTimestamp: null
  7. name: pushsecrets.external-secrets.io
  8. spec:
  9. group: external-secrets.io
  10. names:
  11. categories:
  12. - pushsecrets
  13. kind: PushSecret
  14. listKind: PushSecretList
  15. plural: pushsecrets
  16. singular: pushsecret
  17. scope: Namespaced
  18. versions:
  19. - additionalPrinterColumns:
  20. - jsonPath: .metadata.creationTimestamp
  21. name: AGE
  22. type: date
  23. - jsonPath: .status.conditions[?(@.type=="Ready")].reason
  24. name: Status
  25. type: string
  26. name: v1alpha1
  27. schema:
  28. openAPIV3Schema:
  29. properties:
  30. apiVersion:
  31. description: 'APIVersion defines the versioned schema of this representation
  32. of an object. Servers should convert recognized schemas to the latest
  33. internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  34. type: string
  35. kind:
  36. description: 'Kind is a string value representing the REST resource this
  37. object represents. Servers may infer this from the endpoint the client
  38. submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  39. type: string
  40. metadata:
  41. type: object
  42. spec:
  43. description: PushSecretSpec configures the behavior of the PushSecret.
  44. properties:
  45. data:
  46. description: Secret Data that should be pushed to providers
  47. items:
  48. properties:
  49. match:
  50. description: Match a given Secret Key to be pushed to the provider.
  51. properties:
  52. remoteRef:
  53. description: Remote Refs to push to providers.
  54. properties:
  55. remoteKey:
  56. description: Name of the resulting provider secret.
  57. type: string
  58. required:
  59. - remoteKey
  60. type: object
  61. secretKey:
  62. description: Secret Key to be pushed
  63. type: string
  64. required:
  65. - remoteRef
  66. - secretKey
  67. type: object
  68. required:
  69. - match
  70. type: object
  71. type: array
  72. deletionPolicy:
  73. default: None
  74. description: 'Deletion Policy to handle Secrets in the provider. Possible
  75. Values: "Delete/None". Defaults to "None".'
  76. type: string
  77. refreshInterval:
  78. description: The Interval to which External Secrets will try to push
  79. a secret definition
  80. type: string
  81. secretStoreRefs:
  82. items:
  83. properties:
  84. kind:
  85. default: SecretStore
  86. description: Kind of the SecretStore resource (SecretStore or
  87. ClusterSecretStore) Defaults to `SecretStore`
  88. type: string
  89. labelSelector:
  90. description: Optionally, sync to secret stores with label selector
  91. properties:
  92. matchExpressions:
  93. description: matchExpressions is a list of label selector
  94. requirements. The requirements are ANDed.
  95. items:
  96. description: A label selector requirement is a selector
  97. that contains values, a key, and an operator that relates
  98. the key and values.
  99. properties:
  100. key:
  101. description: key is the label key that the selector
  102. applies to.
  103. type: string
  104. operator:
  105. description: operator represents a key's relationship
  106. to a set of values. Valid operators are In, NotIn,
  107. Exists and DoesNotExist.
  108. type: string
  109. values:
  110. description: values is an array of string values.
  111. If the operator is In or NotIn, the values array
  112. must be non-empty. If the operator is Exists or
  113. DoesNotExist, the values array must be empty. This
  114. array is replaced during a strategic merge patch.
  115. items:
  116. type: string
  117. type: array
  118. required:
  119. - key
  120. - operator
  121. type: object
  122. type: array
  123. matchLabels:
  124. additionalProperties:
  125. type: string
  126. description: matchLabels is a map of {key,value} pairs.
  127. A single {key,value} in the matchLabels map is equivalent
  128. to an element of matchExpressions, whose key field is
  129. "key", the operator is "In", and the values array contains
  130. only "value". The requirements are ANDed.
  131. type: object
  132. type: object
  133. x-kubernetes-map-type: atomic
  134. name:
  135. description: Optionally, sync to the SecretStore of the given
  136. name
  137. type: string
  138. type: object
  139. type: array
  140. selector:
  141. description: The Secret Selector (k8s source) for the Push Secret
  142. properties:
  143. secret:
  144. description: Select a Secret to Push.
  145. properties:
  146. name:
  147. description: Name of the Secret. The Secret must exist in
  148. the same namespace as the PushSecret manifest.
  149. type: string
  150. required:
  151. - name
  152. type: object
  153. required:
  154. - secret
  155. type: object
  156. required:
  157. - secretStoreRefs
  158. - selector
  159. type: object
  160. status:
  161. description: PushSecretStatus indicates the history of the status of PushSecret.
  162. properties:
  163. conditions:
  164. items:
  165. description: PushSecretStatusCondition indicates the status of the
  166. PushSecret.
  167. properties:
  168. lastTransitionTime:
  169. format: date-time
  170. type: string
  171. message:
  172. type: string
  173. reason:
  174. type: string
  175. status:
  176. type: string
  177. type:
  178. description: PushSecretConditionType indicates the condition
  179. of the PushSecret.
  180. type: string
  181. required:
  182. - status
  183. - type
  184. type: object
  185. type: array
  186. refreshTime:
  187. description: refreshTime is the time and date the external secret
  188. was fetched and the target secret updated
  189. format: date-time
  190. nullable: true
  191. type: string
  192. syncedPushSecrets:
  193. additionalProperties:
  194. additionalProperties:
  195. properties:
  196. match:
  197. description: Match a given Secret Key to be pushed to the
  198. provider.
  199. properties:
  200. remoteRef:
  201. description: Remote Refs to push to providers.
  202. properties:
  203. remoteKey:
  204. description: Name of the resulting provider secret.
  205. type: string
  206. required:
  207. - remoteKey
  208. type: object
  209. secretKey:
  210. description: Secret Key to be pushed
  211. type: string
  212. required:
  213. - remoteRef
  214. - secretKey
  215. type: object
  216. required:
  217. - match
  218. type: object
  219. type: object
  220. description: Synced Push Secrets for later deletion. Matches Secret
  221. Stores to PushSecretData that was stored to that secretStore.
  222. type: object
  223. syncedResourceVersion:
  224. description: SyncedResourceVersion keeps track of the last synced
  225. version.
  226. type: string
  227. type: object
  228. type: object
  229. served: true
  230. storage: true
  231. subresources:
  232. status: {}