kustomization.yaml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. # Adds namespace to all resources.
  2. namespace: loco-operator-system
  3. # Value of this field is prepended to the
  4. # names of all resources, e.g. a deployment named
  5. # "wordpress" becomes "alices-wordpress".
  6. # Note that it should also match with the prefix (text before '-') of the namespace
  7. # field above.
  8. namePrefix: loco-operator-
  9. # Labels to add to all resources and selectors.
  10. #labels:
  11. #- includeSelectors: true
  12. # pairs:
  13. # someName: someValue
  14. resources:
  15. - ../crd
  16. - ../rbac
  17. - ../manager
  18. # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
  19. # crd/kustomization.yaml
  20. #- ../webhook
  21. # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
  22. #- ../certmanager
  23. # [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
  24. #- ../prometheus
  25. # [METRICS] Expose the controller manager metrics service.
  26. - metrics_service.yaml
  27. # [NETWORK POLICY] Protect the /metrics endpoint and Webhook Server with NetworkPolicy.
  28. # Only Pod(s) running a namespace labeled with 'metrics: enabled' will be able to gather the metrics.
  29. # Only CR(s) which requires webhooks and are applied on namespaces labeled with 'webhooks: enabled' will
  30. # be able to communicate with the Webhook Server.
  31. #- ../network-policy
  32. # Uncomment the patches line if you enable Metrics
  33. patches:
  34. # [METRICS] The following patch will enable the metrics endpoint using HTTPS and the port :8443.
  35. # More info: https://book.kubebuilder.io/reference/metrics
  36. - path: manager_metrics_patch.yaml
  37. target:
  38. kind: Deployment
  39. # Uncomment the patches line if you enable Metrics and CertManager
  40. # [METRICS-WITH-CERTS] To enable metrics protected with certManager, uncomment the following line.
  41. # This patch will protect the metrics with certManager self-signed certs.
  42. #- path: cert_metrics_manager_patch.yaml
  43. # target:
  44. # kind: Deployment
  45. # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
  46. # crd/kustomization.yaml
  47. #- path: manager_webhook_patch.yaml
  48. # target:
  49. # kind: Deployment
  50. # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
  51. # Uncomment the following replacements to add the cert-manager CA injection annotations
  52. #replacements:
  53. # - source: # Uncomment the following block to enable certificates for metrics
  54. # kind: Service
  55. # version: v1
  56. # name: controller-manager-metrics-service
  57. # fieldPath: metadata.name
  58. # targets:
  59. # - select:
  60. # kind: Certificate
  61. # group: cert-manager.io
  62. # version: v1
  63. # name: metrics-certs
  64. # fieldPaths:
  65. # - spec.dnsNames.0
  66. # - spec.dnsNames.1
  67. # options:
  68. # delimiter: '.'
  69. # index: 0
  70. # create: true
  71. # - select: # Uncomment the following to set the Service name for TLS config in Prometheus ServiceMonitor
  72. # kind: ServiceMonitor
  73. # group: monitoring.coreos.com
  74. # version: v1
  75. # name: controller-manager-metrics-monitor
  76. # fieldPaths:
  77. # - spec.endpoints.0.tlsConfig.serverName
  78. # options:
  79. # delimiter: '.'
  80. # index: 0
  81. # create: true
  82. # - source:
  83. # kind: Service
  84. # version: v1
  85. # name: controller-manager-metrics-service
  86. # fieldPath: metadata.namespace
  87. # targets:
  88. # - select:
  89. # kind: Certificate
  90. # group: cert-manager.io
  91. # version: v1
  92. # name: metrics-certs
  93. # fieldPaths:
  94. # - spec.dnsNames.0
  95. # - spec.dnsNames.1
  96. # options:
  97. # delimiter: '.'
  98. # index: 1
  99. # create: true
  100. # - select: # Uncomment the following to set the Service namespace for TLS in Prometheus ServiceMonitor
  101. # kind: ServiceMonitor
  102. # group: monitoring.coreos.com
  103. # version: v1
  104. # name: controller-manager-metrics-monitor
  105. # fieldPaths:
  106. # - spec.endpoints.0.tlsConfig.serverName
  107. # options:
  108. # delimiter: '.'
  109. # index: 1
  110. # create: true
  111. # - source: # Uncomment the following block if you have any webhook
  112. # kind: Service
  113. # version: v1
  114. # name: webhook-service
  115. # fieldPath: .metadata.name # Name of the service
  116. # targets:
  117. # - select:
  118. # kind: Certificate
  119. # group: cert-manager.io
  120. # version: v1
  121. # name: serving-cert
  122. # fieldPaths:
  123. # - .spec.dnsNames.0
  124. # - .spec.dnsNames.1
  125. # options:
  126. # delimiter: '.'
  127. # index: 0
  128. # create: true
  129. # - source:
  130. # kind: Service
  131. # version: v1
  132. # name: webhook-service
  133. # fieldPath: .metadata.namespace # Namespace of the service
  134. # targets:
  135. # - select:
  136. # kind: Certificate
  137. # group: cert-manager.io
  138. # version: v1
  139. # name: serving-cert
  140. # fieldPaths:
  141. # - .spec.dnsNames.0
  142. # - .spec.dnsNames.1
  143. # options:
  144. # delimiter: '.'
  145. # index: 1
  146. # create: true
  147. # - source: # Uncomment the following block if you have a ValidatingWebhook (--programmatic-validation)
  148. # kind: Certificate
  149. # group: cert-manager.io
  150. # version: v1
  151. # name: serving-cert # This name should match the one in certificate.yaml
  152. # fieldPath: .metadata.namespace # Namespace of the certificate CR
  153. # targets:
  154. # - select:
  155. # kind: ValidatingWebhookConfiguration
  156. # fieldPaths:
  157. # - .metadata.annotations.[cert-manager.io/inject-ca-from]
  158. # options:
  159. # delimiter: '/'
  160. # index: 0
  161. # create: true
  162. # - source:
  163. # kind: Certificate
  164. # group: cert-manager.io
  165. # version: v1
  166. # name: serving-cert
  167. # fieldPath: .metadata.name
  168. # targets:
  169. # - select:
  170. # kind: ValidatingWebhookConfiguration
  171. # fieldPaths:
  172. # - .metadata.annotations.[cert-manager.io/inject-ca-from]
  173. # options:
  174. # delimiter: '/'
  175. # index: 1
  176. # create: true
  177. # - source: # Uncomment the following block if you have a DefaultingWebhook (--defaulting )
  178. # kind: Certificate
  179. # group: cert-manager.io
  180. # version: v1
  181. # name: serving-cert
  182. # fieldPath: .metadata.namespace # Namespace of the certificate CR
  183. # targets:
  184. # - select:
  185. # kind: MutatingWebhookConfiguration
  186. # fieldPaths:
  187. # - .metadata.annotations.[cert-manager.io/inject-ca-from]
  188. # options:
  189. # delimiter: '/'
  190. # index: 0
  191. # create: true
  192. # - source:
  193. # kind: Certificate
  194. # group: cert-manager.io
  195. # version: v1
  196. # name: serving-cert
  197. # fieldPath: .metadata.name
  198. # targets:
  199. # - select:
  200. # kind: MutatingWebhookConfiguration
  201. # fieldPaths:
  202. # - .metadata.annotations.[cert-manager.io/inject-ca-from]
  203. # options:
  204. # delimiter: '/'
  205. # index: 1
  206. # create: true
  207. # - source: # Uncomment the following block if you have a ConversionWebhook (--conversion)
  208. # kind: Certificate
  209. # group: cert-manager.io
  210. # version: v1
  211. # name: serving-cert
  212. # fieldPath: .metadata.namespace # Namespace of the certificate CR
  213. # targets: # Do not remove or uncomment the following scaffold marker; required to generate code for target CRD.
  214. # +kubebuilder:scaffold:crdkustomizecainjectionns
  215. # - source:
  216. # kind: Certificate
  217. # group: cert-manager.io
  218. # version: v1
  219. # name: serving-cert
  220. # fieldPath: .metadata.name
  221. # targets: # Do not remove or uncomment the following scaffold marker; required to generate code for target CRD.
  222. # +kubebuilder:scaffold:crdkustomizecainjectionname