generators.external-secrets.io_webhooks.yaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.15.0
  6. name: webhooks.generators.external-secrets.io
  7. spec:
  8. group: generators.external-secrets.io
  9. names:
  10. categories:
  11. - webhook
  12. kind: Webhook
  13. listKind: WebhookList
  14. plural: webhooks
  15. shortNames:
  16. - webhookl
  17. singular: webhook
  18. scope: Namespaced
  19. versions:
  20. - name: v1alpha1
  21. schema:
  22. openAPIV3Schema:
  23. description: |-
  24. Webhook connects to a third party API server to handle the secrets generation
  25. configuration parameters in spec.
  26. You can specify the server, the token, and additional body parameters.
  27. See documentation for the full API specification for requests and responses.
  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: WebhookSpec controls the behavior of the external generator.
  48. Any body parameters should be passed to the server through the parameters
  49. field.
  50. properties:
  51. body:
  52. description: Body
  53. type: string
  54. caBundle:
  55. description: |-
  56. PEM encoded CA bundle used to validate webhook server certificate. Only used
  57. if the Server URL is using HTTPS protocol. This parameter is ignored for
  58. plain HTTP protocol connection. If not set the system root certificates
  59. are used to validate the TLS connection.
  60. format: byte
  61. type: string
  62. caProvider:
  63. description: The provider for the CA bundle to use to validate webhook
  64. server certificate.
  65. properties:
  66. key:
  67. description: The key the value inside of the provider type to
  68. use, only used with "Secret" type
  69. type: string
  70. name:
  71. description: The name of the object located at the provider type.
  72. type: string
  73. namespace:
  74. description: The namespace the Provider type is in.
  75. type: string
  76. type:
  77. description: The type of provider to use such as "Secret", or
  78. "ConfigMap".
  79. enum:
  80. - Secret
  81. - ConfigMap
  82. type: string
  83. required:
  84. - name
  85. - type
  86. type: object
  87. headers:
  88. additionalProperties:
  89. type: string
  90. description: Headers
  91. type: object
  92. method:
  93. description: Webhook Method
  94. type: string
  95. result:
  96. description: Result formatting
  97. properties:
  98. jsonPath:
  99. description: Json path of return value
  100. type: string
  101. type: object
  102. secrets:
  103. description: |-
  104. Secrets to fill in templates
  105. These secrets will be passed to the templating function as key value pairs under the given name
  106. items:
  107. properties:
  108. name:
  109. description: Name of this secret in templates
  110. type: string
  111. secretRef:
  112. description: Secret ref to fill in credentials
  113. properties:
  114. key:
  115. description: The key where the token is found.
  116. type: string
  117. name:
  118. description: The name of the Secret resource being referred
  119. to.
  120. type: string
  121. type: object
  122. required:
  123. - name
  124. - secretRef
  125. type: object
  126. type: array
  127. timeout:
  128. description: Timeout
  129. type: string
  130. url:
  131. description: Webhook url to call
  132. type: string
  133. required:
  134. - result
  135. - url
  136. type: object
  137. type: object
  138. served: true
  139. storage: true
  140. subresources:
  141. status: {}