diff --git a/Makefile b/Makefile index 69c53e8f..45346b28 100644 --- a/Makefile +++ b/Makefile @@ -120,6 +120,9 @@ dev-setup: -config _tls.cnf \ -keyout /tmp/k8s-webhook-server/serving-certs/tls.key \ -out /tmp/k8s-webhook-server/serving-certs/tls.crt + kubectl create secret tls capsule-tls -n capsule-system \ + --cert=/tmp/k8s-webhook-server/serving-certs/tls.crt\ + --key=/tmp/k8s-webhook-server/serving-certs/tls.key || true rm -f _tls.cnf export WEBHOOK_URL="https://$${LAPTOP_HOST_IP}:9443"; \ export CA_BUNDLE=`openssl base64 -in /tmp/k8s-webhook-server/serving-certs/tls.crt | tr -d '\n'`; \ diff --git a/charts/capsule/templates/configuration-default.yaml b/charts/capsule/templates/configuration-default.yaml index 3cc5422c..bd5b6513 100644 --- a/charts/capsule/templates/configuration-default.yaml +++ b/charts/capsule/templates/configuration-default.yaml @@ -1,4 +1,3 @@ -{{- if not $.Values.crds.exclusive }} apiVersion: capsule.clastix.io/v1beta2 kind: CapsuleConfiguration metadata: @@ -25,4 +24,3 @@ spec: nodeMetadata: {{- toYaml . | nindent 4 }} {{- end }} -{{- end }}