From 7d5d1dbb80e211992cdb27cca7c834f451c63e1d Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Mon, 25 Oct 2021 17:24:48 -0700 Subject: [PATCH] Add dashboard annotations to Traefik helm chart Signed-off-by: Brad Davidson --- scripts/chart-templates/crd-base/Chart.yaml | 2 +- scripts/download | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/chart-templates/crd-base/Chart.yaml b/scripts/chart-templates/crd-base/Chart.yaml index 6707168691..ff31467009 100644 --- a/scripts/chart-templates/crd-base/Chart.yaml +++ b/scripts/chart-templates/crd-base/Chart.yaml @@ -4,4 +4,4 @@ description: Installs the CRDs for ${name}. name: ${name}-crd type: application annotations: - catalog.cattle.io/hidden: "true" + fleet.cattle.io/bundle-id: k3s diff --git a/scripts/download b/scripts/download index 6e74cf7401..e4fdd6d0f5 100755 --- a/scripts/download +++ b/scripts/download @@ -96,6 +96,12 @@ download_and_package_traefik () { echo -e 'global:\n systemDefaultRegistry: ""' >> ${TRAEFIK_TMP_CHART}/values.yaml find ${TRAEFIK_TMP_CHART} -type f | xargs sed -i 's/{{ .Values.image.name }}/{{ template "system_default_registry" .}}&/g' + # Add dashboard annotations to main chart + cat <>${TRAEFIK_TMP_CHART}/Chart.yaml +annotations: + fleet.cattle.io/bundle-id: k3s +EOF + # Move CRDs from main chart to CRD chart mkdir -p ${TRAEFIK_TMP_CRD}/templates mv ${TRAEFIK_TMP_CHART}/crds/* ${TRAEFIK_TMP_CRD}/templates