generators.external-secrets.io_webhooks.yaml 5.3 KB

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