generators.external-secrets.io_webhooks.yaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.17.2
  6. labels:
  7. external-secrets.io/component: controller
  8. name: webhooks.generators.external-secrets.io
  9. spec:
  10. group: generators.external-secrets.io
  11. names:
  12. categories:
  13. - external-secrets
  14. - external-secrets-generators
  15. kind: Webhook
  16. listKind: WebhookList
  17. plural: webhooks
  18. singular: webhook
  19. scope: Namespaced
  20. versions:
  21. - name: v1alpha1
  22. schema:
  23. openAPIV3Schema:
  24. description: |-
  25. Webhook connects to a third party API server to handle the secrets generation
  26. configuration parameters in spec.
  27. You can specify the server, the token, and additional body parameters.
  28. See documentation for the full API specification for requests and responses.
  29. properties:
  30. apiVersion:
  31. description: |-
  32. APIVersion defines the versioned schema of this representation of an object.
  33. Servers should convert recognized schemas to the latest internal value, and
  34. may reject unrecognized values.
  35. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  36. type: string
  37. kind:
  38. description: |-
  39. Kind is a string value representing the REST resource this object represents.
  40. Servers may infer this from the endpoint the client submits requests to.
  41. Cannot be updated.
  42. In CamelCase.
  43. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  44. type: string
  45. metadata:
  46. type: object
  47. spec:
  48. description: WebhookSpec controls the behavior of the external generator.
  49. Any body parameters should be passed to the server through the parameters
  50. field.
  51. properties:
  52. body:
  53. description: Body
  54. type: string
  55. caBundle:
  56. description: |-
  57. PEM encoded CA bundle used to validate webhook server certificate. Only used
  58. if the Server URL is using HTTPS protocol. This parameter is ignored for
  59. plain HTTP protocol connection. If not set the system root certificates
  60. are used to validate the TLS connection.
  61. format: byte
  62. type: string
  63. caProvider:
  64. description: The provider for the CA bundle to use to validate webhook
  65. server certificate.
  66. properties:
  67. key:
  68. description: The key where the CA certificate can be found in
  69. the Secret or ConfigMap.
  70. maxLength: 253
  71. minLength: 1
  72. pattern: ^[-._a-zA-Z0-9]+$
  73. type: string
  74. name:
  75. description: The name of the object located at the provider type.
  76. maxLength: 253
  77. minLength: 1
  78. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  79. type: string
  80. namespace:
  81. description: The namespace the Provider type is in.
  82. maxLength: 63
  83. minLength: 1
  84. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  85. type: string
  86. type:
  87. description: The type of provider to use such as "Secret", or
  88. "ConfigMap".
  89. enum:
  90. - Secret
  91. - ConfigMap
  92. type: string
  93. required:
  94. - name
  95. - type
  96. type: object
  97. headers:
  98. additionalProperties:
  99. type: string
  100. description: Headers
  101. type: object
  102. method:
  103. description: Webhook Method
  104. type: string
  105. result:
  106. description: Result formatting
  107. properties:
  108. jsonPath:
  109. description: Json path of return value
  110. type: string
  111. type: object
  112. secrets:
  113. description: |-
  114. Secrets to fill in templates
  115. These secrets will be passed to the templating function as key value pairs under the given name
  116. items:
  117. properties:
  118. name:
  119. description: Name of this secret in templates
  120. type: string
  121. secretRef:
  122. description: Secret ref to fill in credentials
  123. properties:
  124. key:
  125. description: The key where the token is found.
  126. maxLength: 253
  127. minLength: 1
  128. pattern: ^[-._a-zA-Z0-9]+$
  129. type: string
  130. name:
  131. description: The name of the Secret resource being referred
  132. to.
  133. maxLength: 253
  134. minLength: 1
  135. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  136. type: string
  137. type: object
  138. required:
  139. - name
  140. - secretRef
  141. type: object
  142. type: array
  143. timeout:
  144. description: Timeout
  145. type: string
  146. url:
  147. description: Webhook url to call
  148. type: string
  149. required:
  150. - result
  151. - url
  152. type: object
  153. type: object
  154. served: true
  155. storage: true
  156. subresources:
  157. status: {}