external-secrets.io_pushsecrets.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.14.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: |-
  31. APIVersion defines the versioned schema of this representation of an object.
  32. Servers should convert recognized schemas to the latest internal value, and
  33. may reject unrecognized values.
  34. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  35. type: string
  36. kind:
  37. description: |-
  38. Kind is a string value representing the REST resource this object represents.
  39. Servers may infer this from the endpoint the client submits requests to.
  40. Cannot be updated.
  41. In CamelCase.
  42. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  43. type: string
  44. metadata:
  45. type: object
  46. spec:
  47. description: PushSecretSpec configures the behavior of the PushSecret.
  48. properties:
  49. data:
  50. description: Secret Data that should be pushed to providers
  51. items:
  52. properties:
  53. match:
  54. description: Match a given Secret Key to be pushed to the provider.
  55. properties:
  56. remoteRef:
  57. description: Remote Refs to push to providers.
  58. properties:
  59. property:
  60. description: Name of the property in the resulting secret
  61. type: string
  62. remoteKey:
  63. description: Name of the resulting provider secret.
  64. type: string
  65. required:
  66. - remoteKey
  67. type: object
  68. secretKey:
  69. description: Secret Key to be pushed
  70. type: string
  71. required:
  72. - remoteRef
  73. - secretKey
  74. type: object
  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: |-
  94. Kind of the SecretStore resource (SecretStore or ClusterSecretStore)
  95. Defaults to `SecretStore`
  96. type: string
  97. labelSelector:
  98. description: Optionally, sync to secret stores with label selector
  99. properties:
  100. matchExpressions:
  101. description: matchExpressions is a list of label selector
  102. requirements. The requirements are ANDed.
  103. items:
  104. description: |-
  105. A label selector requirement is a selector that contains values, a key, and an operator that
  106. relates the key and values.
  107. properties:
  108. key:
  109. description: key is the label key that the selector
  110. applies to.
  111. type: string
  112. operator:
  113. description: |-
  114. operator represents a key's relationship to a set of values.
  115. Valid operators are In, NotIn, Exists and DoesNotExist.
  116. type: string
  117. values:
  118. description: |-
  119. values is an array of string values. If the operator is In or NotIn,
  120. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  121. the values array must be empty. This array is replaced during a strategic
  122. merge patch.
  123. items:
  124. type: string
  125. type: array
  126. required:
  127. - key
  128. - operator
  129. type: object
  130. type: array
  131. matchLabels:
  132. additionalProperties:
  133. type: string
  134. description: |-
  135. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  136. map is equivalent to an element of matchExpressions, whose key field is "key", the
  137. operator is "In", and the values array contains 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: |-
  195. refreshTime is the time and date the external secret was fetched and
  196. the target secret updated
  197. format: date-time
  198. nullable: true
  199. type: string
  200. syncedPushSecrets:
  201. additionalProperties:
  202. additionalProperties:
  203. properties:
  204. match:
  205. description: Match a given Secret Key to be pushed to the
  206. provider.
  207. properties:
  208. remoteRef:
  209. description: Remote Refs to push to providers.
  210. properties:
  211. property:
  212. description: Name of the property in the resulting
  213. secret
  214. type: string
  215. remoteKey:
  216. description: Name of the resulting provider secret.
  217. type: string
  218. required:
  219. - remoteKey
  220. type: object
  221. secretKey:
  222. description: Secret Key to be pushed
  223. type: string
  224. required:
  225. - remoteRef
  226. - secretKey
  227. type: object
  228. required:
  229. - match
  230. type: object
  231. type: object
  232. description: Synced Push Secrets for later deletion. Matches Secret
  233. Stores to PushSecretData that was stored to that secretStore.
  234. type: object
  235. syncedResourceVersion:
  236. description: SyncedResourceVersion keeps track of the last synced
  237. version.
  238. type: string
  239. type: object
  240. type: object
  241. served: true
  242. storage: true
  243. subresources:
  244. status: {}