From 446b8ea7446822b85810536dc43ce3d5e3ce5b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20B=C3=A4hler?= Date: Tue, 9 Jul 2024 11:09:18 +0200 Subject: [PATCH] fix(dev): correct dev-environment setups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Oliver Bähler --- Makefile | 3 +++ charts/capsule/templates/configuration-default.yaml | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) 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 }}