|
| 1 | +# Adds namespace to all resources. |
| 2 | +namespace: cnf-certsuite-operator |
| 3 | + |
| 4 | +# Value of this field is prepended to the |
| 5 | +# names of all resources, e.g. a deployment named |
| 6 | +# "wordpress" becomes "alices-wordpress". |
| 7 | +# Note that it should also match with the prefix (text before '-') of the namespace |
| 8 | +# field above. |
| 9 | +namePrefix: cnf-certsuite- |
| 10 | + |
| 11 | +# Labels to add to all resources and selectors. |
| 12 | +#commonLabels: |
| 13 | +# someName: someValue |
| 14 | + |
| 15 | +bases: |
| 16 | +- ../../crd |
| 17 | +- ../../rbac |
| 18 | +- ../../manager |
| 19 | +- ../../manifests/bases/cnfpod-permissions |
| 20 | +# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in |
| 21 | +# crd/kustomization.yaml |
| 22 | +- ../../webhook |
| 23 | +# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required. |
| 24 | +- ../../certmanager |
| 25 | +# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'. |
| 26 | +#- ../prometheus |
| 27 | + |
| 28 | +patchesStrategicMerge: |
| 29 | +# Protect the /metrics endpoint by putting it behind auth. |
| 30 | +# If you want your controller-manager to expose the /metrics |
| 31 | +# endpoint w/o any authn/z, please comment the following line. |
| 32 | +- manager_auth_proxy_patch.yaml |
| 33 | + |
| 34 | +# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in |
| 35 | +# crd/kustomization.yaml |
| 36 | +- manager_webhook_patch.yaml |
| 37 | + |
| 38 | +# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. |
| 39 | +# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks. |
| 40 | +# 'CERTMANAGER' needs to be enabled to use ca injection |
| 41 | +- webhookcainjection_patch.yaml |
| 42 | + |
| 43 | +# the following config is for teaching kustomize how to do var substitution |
| 44 | +vars: |
| 45 | +# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix. |
| 46 | +- name: CERTIFICATE_NAMESPACE # namespace of the certificate CR |
| 47 | + objref: |
| 48 | + kind: Certificate |
| 49 | + group: cert-manager.io |
| 50 | + version: v1 |
| 51 | + name: serving-cert # this name should match the one in certificate.yaml |
| 52 | + fieldref: |
| 53 | + fieldpath: metadata.namespace |
| 54 | +- name: CERTIFICATE_NAME |
| 55 | + objref: |
| 56 | + kind: Certificate |
| 57 | + group: cert-manager.io |
| 58 | + version: v1 |
| 59 | + name: serving-cert # this name should match the one in certificate.yaml |
| 60 | +- name: SERVICE_NAMESPACE # namespace of the service |
| 61 | + objref: |
| 62 | + kind: Service |
| 63 | + version: v1 |
| 64 | + name: webhook-service |
| 65 | + fieldref: |
| 66 | + fieldpath: metadata.namespace |
| 67 | +- name: SERVICE_NAME |
| 68 | + objref: |
| 69 | + kind: Service |
| 70 | + version: v1 |
| 71 | + name: webhook-service |
0 commit comments