diff --git a/charts/vineyard-operator/values.yaml b/charts/vineyard-operator/values.yaml index 6611bb723..e743095db 100644 --- a/charts/vineyard-operator/values.yaml +++ b/charts/vineyard-operator/values.yaml @@ -1,6 +1,8 @@ cert-manager: enabled: true installCRDs: true + extraArgs: + - --enable-certificate-owner-ref=true controllerManager: kubeRbacProxy: containerSecurityContext: diff --git a/k8s/Makefile b/k8s/Makefile index 7273c38e7..bb15d1d7b 100644 --- a/k8s/Makefile +++ b/k8s/Makefile @@ -272,4 +272,8 @@ generate-helm-chart: helmify kustomize cd ../charts && $(KUSTOMIZE) build ../k8s/config/default | $(HELMIFY) --cert-manager-as-subchart vineyard-operator && \ sed -i 's/\/var\/run\/vineyard-kubernetes\/{{.Namespace}}\/{{.Name}}/\/var\/run\/vineyard-kubernetes\/{{ \"{{.Namespace}}\/{{.Name}}\" }}/g' \ vineyard-operator/templates/vineyardd-crd.yaml && \ - sed -i 's/certManager/cert-manager/g' vineyard-operator/values.yaml + sed -i 's/certManager/cert-manager/g' vineyard-operator/values.yaml && \ + sed -i '4i\ extraArgs:\n - --enable-certificate-owner-ref=true' vineyard-operator/values.yaml + + +