From e182b589259dc16f648cdeb4e77824b65c1078b9 Mon Sep 17 00:00:00 2001 From: Adam Dyess Date: Fri, 24 Oct 2025 08:18:31 -0500 Subject: [PATCH 1/2] docs: Address default-storage class UX --- charmcraft.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/charmcraft.yaml b/charmcraft.yaml index 4448022..a14e75d 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -47,7 +47,20 @@ config: options: default-storage: default: ceph-xfs - description: "Default storage class to use. Allowed values: 'ceph-ext4', 'ceph-xfs', 'cephfs'" + description: | + Default storage class to use. + + If the charm created storage class matches this value, it will be + annotated as the default storage class in the kubernetes cluster. + + Note: a cluster should only annotate one storage class as the default. + If multiple storage classes are annotated as default, the behavior + is undefined and may lead to unexpected results. + + Leave empty to not set any storage class default via this charm. + + annotation: + storageclass.kubernetes.io/is-default-class: "true" type: string provisioner-replicas: From 3217e2fb1c344f8189c5c7d5befc687f15b251f9 Mon Sep 17 00:00:00 2001 From: Adam Dyess Date: Thu, 18 Dec 2025 14:30:44 -0600 Subject: [PATCH 2/2] Update charmcraft.yaml --- charmcraft.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/charmcraft.yaml b/charmcraft.yaml index a14e75d..6db59c3 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -58,9 +58,6 @@ config: is undefined and may lead to unexpected results. Leave empty to not set any storage class default via this charm. - - annotation: - storageclass.kubernetes.io/is-default-class: "true" type: string provisioner-replicas: