@@ -14,9 +14,6 @@ namePrefix: gatekeeper-operator-
1414commonLabels :
1515 control-plane : gatekeeper-operator-controller-manager
1616
17- bases :
18- - ../crd
19- - ../manager
2017# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
2118# crd/kustomization.yaml
2219# - ../webhook
@@ -25,10 +22,10 @@ bases:
2522# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
2623# - ../prometheus
2724
28- patchesStrategicMerge :
2925# Protect the /metrics endpoint by putting it behind auth.
3026# If you want your controller-manager to expose the /metrics
3127# endpoint w/o any authn/z, please comment the following line.
28+ patchesStrategicMerge :
3229- manager_auth_proxy_patch.yaml
3330
3431# Mount the controller config file for loading manager configurations
@@ -45,31 +42,8 @@ patchesStrategicMerge:
4542# - webhookcainjection_patch.yaml
4643
4744# the following config is for teaching kustomize how to do var substitution
48- vars :
49- # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
50- # - name: CERTIFICATE_NAMESPACE # namespace of the certificate CR
51- # objref:
52- # kind: Certificate
53- # group: cert-manager.io
54- # version: v1
55- # name: serving-cert # this name should match the one in certificate.yaml
56- # fieldref:
57- # fieldpath: metadata.namespace
58- # - name: CERTIFICATE_NAME
59- # objref:
60- # kind: Certificate
61- # group: cert-manager.io
62- # version: v1
63- # name: serving-cert # this name should match the one in certificate.yaml
64- # - name: SERVICE_NAMESPACE # namespace of the service
65- # objref:
66- # kind: Service
67- # version: v1
68- # name: webhook-service
69- # fieldref:
70- # fieldpath: metadata.namespace
71- # - name: SERVICE_NAME
72- # objref:
73- # kind: Service
74- # version: v1
75- # name: webhook-service
45+ apiVersion : kustomize.config.k8s.io/v1beta1
46+ kind : Kustomization
47+ resources :
48+ - ../crd
49+ - ../manager
0 commit comments