Skip to content

Commit

Permalink
Add the enable-certificate-owner-ref to the subchart of cert-manager. (
Browse files Browse the repository at this point in the history
…#1341)

As titled. After uninstalling the vineyard operator, the secret for
related webhooks will be deleted automatically.

Signed-off-by: Ye Cao <[email protected]>
  • Loading branch information
dashanji authored Apr 24, 2023
1 parent 4ff47f5 commit f8f45e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions charts/vineyard-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cert-manager:
enabled: true
installCRDs: true
extraArgs:
- --enable-certificate-owner-ref=true
controllerManager:
kubeRbacProxy:
containerSecurityContext:
Expand Down
6 changes: 5 additions & 1 deletion k8s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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



0 comments on commit f8f45e0

Please sign in to comment.