external-secrets.io_pushsecrets.yaml 11 KB

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