From 0a99f872f0bed3411df9bdaa4b3bde10209b887d Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Fri, 14 May 2021 00:11:56 +0200 Subject: [PATCH] fix: remove custom CRDs handling for logging, fixed in chart itself --- charts/kubezero/bootstrap.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/charts/kubezero/bootstrap.sh b/charts/kubezero/bootstrap.sh index bdebbf6..ea45a2e 100755 --- a/charts/kubezero/bootstrap.sh +++ b/charts/kubezero/bootstrap.sh @@ -72,8 +72,8 @@ function delete_ns() { # Extract crds via helm calls and apply delta=crds only function _crds() { - helm template $(chart_location $chart) --namespace $namespace --name-template $release --skip-crds --set ${release}.installCRDs=false > $TMPDIR/helm-no-crds.yaml - helm template $(chart_location $chart) --namespace $namespace --name-template $release --include-crds --set ${release}.installCRDs=true > $TMPDIR/helm-crds.yaml + helm template $(chart_location $chart) --namespace $namespace --name-template $release --skip-crds -f $TMPDIR/values.yaml > $TMPDIR/helm-no-crds.yaml + helm template $(chart_location $chart) --namespace $namespace --name-template $release --include-crds -f $TMPDIR/values.yaml > $TMPDIR/helm-crds.yaml diff -e $TMPDIR/helm-no-crds.yaml $TMPDIR/helm-crds.yaml | head -n-1 | tail -n+2 > $TMPDIR/crds.yaml [ -s $TMPDIR/crds.yaml ] && kubectl apply -f $TMPDIR/crds.yaml } @@ -205,13 +205,6 @@ function metrics-pre() { ########### # Logging # ########### -# eck operator still doesnt support helm v3 so we have to toggle settings in the eck subchart -function logging-crds() { - helm template $(chart_location $chart) --namespace $namespace --name-template $release --skip-crds -f $TMPDIR/values.yaml --set eck-operator.installCRDs=false > $TMPDIR/helm-no-crds.yaml - helm template $(chart_location $chart) --namespace $namespace --name-template $release --include-crds -f $TMPDIR/values.yaml --set eck-operator.installCRDs=true > $TMPDIR/helm-crds.yaml - diff -e $TMPDIR/helm-no-crds.yaml $TMPDIR/helm-crds.yaml | head -n-1 | tail -n+2 > $TMPDIR/crds.yaml - [ -s $TMPDIR/crds.yaml ] && kubectl apply -f $TMPDIR/crds.yaml -} function logging-post() { kubectl annotate --overwrite namespace logging 'iam.amazonaws.com/permitted=.*ElasticSearchSnapshots.*' }