1.29 config default-storage ineffective

Bug #2072565 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubernetes Control Plane Charm
Triaged
Undecided
Unassigned

Bug Description

the default-storage annotation on a storage class can be marked on MANY storage classes, but is only effective when it there is a single storage class marked.

The kubernetes-control-plane config option `default-storage` seems like a good charm config for this setting -- to ensure the cluster has 1 or 0 storage class marked as such. It just doesn't work as it was only ever designed to mark storage classes created via cdk-addons.

Charms like aws-k8s-storage, gcp-k8s-storage, vsphere-cloud-controller, cinder-csi, ceph-csi, which apply storage classes themselves may overwrite any annotations kcp applies on those storage classes.

We should find a way for these "storage" charms to communicate their storage class with KCP (maybe via relation) so k8s can anoint the right one to mark it as the default storage class for the cluster

Revision history for this message
Adam Dyess (addyess) wrote :

perhaps sharing the default-storage class via kube-control is a good option here, and have kcp try to mark it with the annotation if the storage class exists

Changed in charm-kubernetes-master:
milestone: none → 1.31
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.