external-secrets.io_pushsecrets.yaml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.11.4
  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. remoteKey:
  55. description: Name of the resulting provider secret.
  56. type: string
  57. required:
  58. - remoteKey
  59. type: object
  60. secretKey:
  61. description: Secret Key to be pushed
  62. type: string
  63. required:
  64. - remoteRef
  65. - secretKey
  66. type: object
  67. required:
  68. - match
  69. type: object
  70. type: array
  71. deletionPolicy:
  72. default: None
  73. description: 'Deletion Policy to handle Secrets in the provider. Possible
  74. Values: "Delete/None". Defaults to "None".'
  75. type: string
  76. refreshInterval:
  77. description: The Interval to which External Secrets will try to push
  78. a secret definition
  79. type: string
  80. secretStoreRefs:
  81. items:
  82. properties:
  83. kind:
  84. default: SecretStore
  85. description: Kind of the SecretStore resource (SecretStore or
  86. ClusterSecretStore) Defaults to `SecretStore`
  87. type: string
  88. labelSelector:
  89. description: Optionally, sync to secret stores with label selector
  90. properties:
  91. matchExpressions:
  92. description: matchExpressions is a list of label selector
  93. requirements. The requirements are ANDed.
  94. items:
  95. description: A label selector requirement is a selector
  96. that contains values, a key, and an operator that relates
  97. the key and values.
  98. properties:
  99. key:
  100. description: key is the label key that the selector
  101. applies to.
  102. type: string
  103. operator:
  104. description: operator represents a key's relationship
  105. to a set of values. Valid operators are In, NotIn,
  106. Exists and DoesNotExist.
  107. type: string
  108. values:
  109. description: values is an array of string values.
  110. If the operator is In or NotIn, the values array
  111. must be non-empty. If the operator is Exists or
  112. DoesNotExist, the values array must be empty. This
  113. array is replaced during a strategic merge patch.
  114. items:
  115. type: string
  116. type: array
  117. required:
  118. - key
  119. - operator
  120. type: object
  121. type: array
  122. matchLabels:
  123. additionalProperties:
  124. type: string
  125. description: matchLabels is a map of {key,value} pairs.
  126. A single {key,value} in the matchLabels map is equivalent
  127. to an element of matchExpressions, whose key field is
  128. "key", the operator is "In", and the values array contains
  129. only "value". The requirements are ANDed.
  130. type: object
  131. type: object
  132. x-kubernetes-map-type: atomic
  133. name:
  134. description: Optionally, sync to the SecretStore of the given
  135. name
  136. type: string
  137. type: object
  138. type: array
  139. selector:
  140. description: The Secret Selector (k8s source) for the Push Secret
  141. properties:
  142. secret:
  143. description: Select a Secret to Push.
  144. properties:
  145. name:
  146. description: Name of the Secret. The Secret must exist in
  147. the same namespace as the PushSecret manifest.
  148. type: string
  149. required:
  150. - name
  151. type: object
  152. required:
  153. - secret
  154. type: object
  155. required:
  156. - secretStoreRefs
  157. - selector
  158. type: object
  159. status:
  160. description: PushSecretStatus indicates the history of the status of PushSecret.
  161. properties:
  162. conditions:
  163. items:
  164. description: PushSecretStatusCondition indicates the status of the
  165. PushSecret.
  166. properties:
  167. lastTransitionTime:
  168. format: date-time
  169. type: string
  170. message:
  171. type: string
  172. reason:
  173. type: string
  174. status:
  175. type: string
  176. type:
  177. description: PushSecretConditionType indicates the condition
  178. of the PushSecret.
  179. type: string
  180. required:
  181. - status
  182. - type
  183. type: object
  184. type: array
  185. refreshTime:
  186. description: refreshTime is the time and date the external secret
  187. was fetched and the target secret updated
  188. format: date-time
  189. nullable: true
  190. type: string
  191. syncedPushSecrets:
  192. additionalProperties:
  193. additionalProperties:
  194. properties:
  195. match:
  196. description: Match a given Secret Key to be pushed to the
  197. provider.
  198. properties:
  199. remoteRef:
  200. description: Remote Refs to push to providers.
  201. properties:
  202. remoteKey:
  203. description: Name of the resulting provider secret.
  204. type: string
  205. required:
  206. - remoteKey
  207. type: object
  208. secretKey:
  209. description: Secret Key to be pushed
  210. type: string
  211. required:
  212. - remoteRef
  213. - secretKey
  214. type: object
  215. required:
  216. - match
  217. type: object
  218. type: object
  219. description: Synced Push Secrets for later deletion. Matches Secret
  220. Stores to PushSecretData that was stored to that secretStore.
  221. type: object
  222. syncedResourceVersion:
  223. description: SyncedResourceVersion keeps track of the last synced
  224. version.
  225. type: string
  226. type: object
  227. type: object
  228. served: true
  229. storage: true
  230. subresources:
  231. status: {}