From 2b31f94fff17f361230fd16a8e40b3e2526886b3 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Mon, 17 Feb 2025 11:57:17 -0800 Subject: [PATCH] Add annotations to kubestash catalog crds for kustomize Signed-off-by: Tamal Saha --- .../crds/addons.kubestash.com_addons.yaml | 2 ++ .../crds/addons.kubestash.com_functions.yaml | 2 ++ hack/scripts/import-crds.sh | 1 + 3 files changed, 5 insertions(+) diff --git a/charts/kubedb-kubestash-catalog/crds/addons.kubestash.com_addons.yaml b/charts/kubedb-kubestash-catalog/crds/addons.kubestash.com_addons.yaml index 2b088861c..b0be08926 100644 --- a/charts/kubedb-kubestash-catalog/crds/addons.kubestash.com_addons.yaml +++ b/charts/kubedb-kubestash-catalog/crds/addons.kubestash.com_addons.yaml @@ -1,6 +1,8 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: + annotations: + config.kubernetes.io/local-config: "true" labels: app.kubernetes.io/name: kubestash name: addons.addons.kubestash.com diff --git a/charts/kubedb-kubestash-catalog/crds/addons.kubestash.com_functions.yaml b/charts/kubedb-kubestash-catalog/crds/addons.kubestash.com_functions.yaml index 8d3ce0c72..27f84c204 100644 --- a/charts/kubedb-kubestash-catalog/crds/addons.kubestash.com_functions.yaml +++ b/charts/kubedb-kubestash-catalog/crds/addons.kubestash.com_functions.yaml @@ -1,6 +1,8 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: + annotations: + config.kubernetes.io/local-config: "true" labels: app.kubernetes.io/name: kubestash name: functions.addons.kubestash.com diff --git a/hack/scripts/import-crds.sh b/hack/scripts/import-crds.sh index 00a5f5633..6eb7e2a5f 100755 --- a/hack/scripts/import-crds.sh +++ b/hack/scripts/import-crds.sh @@ -98,6 +98,7 @@ OPEN_VIZ_APIMACHINERY_TAG=${OPEN_VIZ_APIMACHINERY_TAG:-v0.0.8} crd-importer \ --no-description \ + --annotations 'config.kubernetes.io/local-config=true' \ --input=https://github.com/kubestash/apimachinery/raw/${KUBESTASH_APIMACHINERY_TAG}/crds/addons.kubestash.com_addons.yaml \ --input=https://github.com/kubestash/apimachinery/raw/${KUBESTASH_APIMACHINERY_TAG}/crds/addons.kubestash.com_functions.yaml \ --out=./charts/kubedb-kubestash-catalog/crds