external-secrets.io_pushsecrets.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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. enum:
  84. - Delete
  85. - None
  86. type: string
  87. refreshInterval:
  88. description: The Interval to which External Secrets will try to push
  89. a secret definition
  90. type: string
  91. secretStoreRefs:
  92. items:
  93. properties:
  94. kind:
  95. default: SecretStore
  96. description: Kind of the SecretStore resource (SecretStore or
  97. ClusterSecretStore) Defaults to `SecretStore`
  98. type: string
  99. labelSelector:
  100. description: Optionally, sync to secret stores with label selector
  101. properties:
  102. matchExpressions:
  103. description: matchExpressions is a list of label selector
  104. requirements. The requirements are ANDed.
  105. items:
  106. description: A label selector requirement is a selector
  107. that contains values, a key, and an operator that relates
  108. the key and values.
  109. properties:
  110. key:
  111. description: key is the label key that the selector
  112. applies to.
  113. type: string
  114. operator:
  115. description: operator represents a key's relationship
  116. to a set of values. Valid operators are In, NotIn,
  117. Exists and DoesNotExist.
  118. type: string
  119. values:
  120. description: values is an array of string values.
  121. If the operator is In or NotIn, the values array
  122. must be non-empty. If the operator is Exists or
  123. DoesNotExist, the values array must be empty. This
  124. array is replaced during a strategic merge patch.
  125. items:
  126. type: string
  127. type: array
  128. required:
  129. - key
  130. - operator
  131. type: object
  132. type: array
  133. matchLabels:
  134. additionalProperties:
  135. type: string
  136. description: matchLabels is a map of {key,value} pairs.
  137. A single {key,value} in the matchLabels map is equivalent
  138. to an element of matchExpressions, whose key field is
  139. "key", the operator is "In", and the values array contains
  140. only "value". The requirements are ANDed.
  141. type: object
  142. type: object
  143. x-kubernetes-map-type: atomic
  144. name:
  145. description: Optionally, sync to the SecretStore of the given
  146. name
  147. type: string
  148. type: object
  149. type: array
  150. selector:
  151. description: The Secret Selector (k8s source) for the Push Secret
  152. properties:
  153. secret:
  154. description: Select a Secret to Push.
  155. properties:
  156. name:
  157. description: Name of the Secret. The Secret must exist in
  158. the same namespace as the PushSecret manifest.
  159. type: string
  160. required:
  161. - name
  162. type: object
  163. required:
  164. - secret
  165. type: object
  166. required:
  167. - secretStoreRefs
  168. - selector
  169. type: object
  170. status:
  171. description: PushSecretStatus indicates the history of the status of PushSecret.
  172. properties:
  173. conditions:
  174. items:
  175. description: PushSecretStatusCondition indicates the status of the
  176. PushSecret.
  177. properties:
  178. lastTransitionTime:
  179. format: date-time
  180. type: string
  181. message:
  182. type: string
  183. reason:
  184. type: string
  185. status:
  186. type: string
  187. type:
  188. description: PushSecretConditionType indicates the condition
  189. of the PushSecret.
  190. type: string
  191. required:
  192. - status
  193. - type
  194. type: object
  195. type: array
  196. refreshTime:
  197. description: refreshTime is the time and date the external secret
  198. was fetched and the target secret updated
  199. format: date-time
  200. nullable: true
  201. type: string
  202. syncedPushSecrets:
  203. additionalProperties:
  204. additionalProperties:
  205. properties:
  206. match:
  207. description: Match a given Secret Key to be pushed to the
  208. provider.
  209. properties:
  210. remoteRef:
  211. description: Remote Refs to push to providers.
  212. properties:
  213. property:
  214. description: Name of the property in the resulting
  215. secret
  216. type: string
  217. remoteKey:
  218. description: Name of the resulting provider secret.
  219. type: string
  220. required:
  221. - remoteKey
  222. type: object
  223. secretKey:
  224. description: Secret Key to be pushed
  225. type: string
  226. required:
  227. - remoteRef
  228. - secretKey
  229. type: object
  230. metadata:
  231. description: Metadata is metadata attached to the secret.
  232. The structure of metadata is provider specific, please look
  233. it up in the provider documentation.
  234. x-kubernetes-preserve-unknown-fields: true
  235. required:
  236. - match
  237. type: object
  238. type: object
  239. description: Synced Push Secrets for later deletion. Matches Secret
  240. Stores to PushSecretData that was stored to that secretStore.
  241. type: object
  242. syncedResourceVersion:
  243. description: SyncedResourceVersion keeps track of the last synced
  244. version.
  245. type: string
  246. type: object
  247. type: object
  248. served: true
  249. storage: true
  250. subresources:
  251. status: {}