Skip to content

Commit f2d6cc6

Browse files
committed
[OSPRH-20258] Propagate storageClass to CK
When the StorageClass is empty in the CloudKitty section of the oscp CR, propagate the oscp.spec.storageClass there.
1 parent accf975 commit f2d6cc6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/openstack/telemetry.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ func ReconcileTelemetry(ctx context.Context, instance *corev1beta1.OpenStackCont
415415
if telemetry.Spec.Autoscaling.HeatInstance == "" {
416416
telemetry.Spec.Autoscaling.HeatInstance = heatName
417417
}
418+
if telemetry.Spec.CloudKitty.StorageClass == "" {
419+
telemetry.Spec.CloudKitty.StorageClass = instance.Spec.StorageClass
420+
}
418421

419422
err := controllerutil.SetControllerReference(helper.GetBeforeObject(), telemetry, helper.GetScheme())
420423
if err != nil {

0 commit comments

Comments
 (0)