From 6781fbc1a97f7c0a412ecf24473775b285bcb9b1 Mon Sep 17 00:00:00 2001 From: Chris Sibbitt Date: Tue, 11 Jun 2024 11:30:57 -0400 Subject: [PATCH] Rename UIPlugin for compatibility with COO 0.3 --- controllers/metricstorage_controller.go | 4 ++-- tests/kuttl/suites/metricstorage/tests/01-assert.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/metricstorage_controller.go b/controllers/metricstorage_controller.go index a3c391ef..5047f557 100644 --- a/controllers/metricstorage_controller.go +++ b/controllers/metricstorage_controller.go @@ -509,7 +509,7 @@ func (r *MetricStorageReconciler) reconcileNormal( // ===== // uiPluginObj := &obsui.ObservabilityUIPlugin{ // ObjectMeta: metav1.ObjectMeta{ - // Name: "ui-dashboards", + // Name: "dashboards", // }, // } // ===== @@ -524,7 +524,7 @@ func (r *MetricStorageReconciler) reconcileNormal( Version: "v1alpha1", Kind: "UIPlugin", }) - uiPluginObj.SetName("ui-dashboards") + uiPluginObj.SetName("dashboards") // ===== op, err = controllerutil.CreateOrPatch(ctx, r.Client, uiPluginObj, func() error { // uiPluginObj.Spec.Type = "Dashboards" // After we update to COO 0.2.0 as dependency diff --git a/tests/kuttl/suites/metricstorage/tests/01-assert.yaml b/tests/kuttl/suites/metricstorage/tests/01-assert.yaml index 0040efe1..4e9ea0f4 100644 --- a/tests/kuttl/suites/metricstorage/tests/01-assert.yaml +++ b/tests/kuttl/suites/metricstorage/tests/01-assert.yaml @@ -74,7 +74,7 @@ spec: apiVersion: observability.openshift.io/v1alpha1 kind: UIPlugin metadata: - name: ui-dashboards + name: dashboards spec: type: Dashboards status: