generators.external-secrets.io_webhooks.yaml 5.4 KB

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