From b91846efc778cbef58b2ea811c5610d9d866d834 Mon Sep 17 00:00:00 2001 From: Jont828 Date: Mon, 16 Dec 2024 20:22:39 -0500 Subject: [PATCH] Fix config map for clusterresourceset --- .../cluster-template-custom-builds-load.yaml | 54 +++++++++++++++++++ .../dev/custom-builds-load/kustomization.yaml | 5 +- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/templates/test/dev/cluster-template-custom-builds-load.yaml b/templates/test/dev/cluster-template-custom-builds-load.yaml index 2b994ba197d..68b893e9c9a 100644 --- a/templates/test/dev/cluster-template-custom-builds-load.yaml +++ b/templates/test/dev/cluster-template-custom-builds-load.yaml @@ -1370,3 +1370,57 @@ spec: - kind: ConfigMap name: cni-${CLUSTER_NAME}-storageclass strategy: ApplyOnce +--- +apiVersion: v1 +data: + storageclass: | + apiVersion: storage.k8s.io/v1 + kind: StorageClass + metadata: + name: default + annotations: + storageclass.beta.kubernetes.io/is-default-class: "true" + labels: + kubernetes.io/cluster-service: "true" + provisioner: kubernetes.io/azure-disk + parameters: + kind: Managed + storageaccounttype: Standard_LRS + cachingmode: ReadOnly + volumeBindingMode: WaitForFirstConsumer + --- + apiVersion: storage.k8s.io/v1 + kind: StorageClass + metadata: + name: managed-premium + annotations: + labels: + kubernetes.io/cluster-service: "true" + provisioner: kubernetes.io/azure-disk + parameters: + kind: Managed + storageaccounttype: Premium_LRS + cachingmode: ReadOnly + volumeBindingMode: WaitForFirstConsumer + --- + apiVersion: storage.k8s.io/v1 + kind: StorageClass + metadata: + name: managed-standard + annotations: + labels: + kubernetes.io/cluster-service: "true" + provisioner: kubernetes.io/azure-disk + parameters: + kind: Managed + storageaccounttype: Standard_LRS + cachingmode: ReadOnly + volumeBindingMode: WaitForFirstConsumer +kind: ConfigMap +metadata: + annotations: + note: generated + labels: + type: generated + name: storageclass-${CLUSTER_NAME} + namespace: default diff --git a/templates/test/dev/custom-builds-load/kustomization.yaml b/templates/test/dev/custom-builds-load/kustomization.yaml index daef3d494fc..be9e5ffad81 100644 --- a/templates/test/dev/custom-builds-load/kustomization.yaml +++ b/templates/test/dev/custom-builds-load/kustomization.yaml @@ -14,6 +14,9 @@ generatorOptions: disableNameSuffixHash: true labels: type: generated - +configMapGenerator: +- files: + - storageclass=../../../addons/storageclass-azure-disk.yaml + name: storageclass-${CLUSTER_NAME} sortOptions: order: fifo \ No newline at end of file