From ea9afb1fe278e2bef4808be3c71b5202b43137d5 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Tue, 21 May 2024 16:53:39 -0700 Subject: [PATCH] monitor-dashboard: fix deploymentconfig selector DeploymentConfig objects don't expect a selector type for selector, rather it expects a simple mapping of labels to values, which will be substituted into the resultant Deployment object as matchLabel: Fixes: https://gitlab.com/fedora/commops/home/-/issues/28 Signed-off-by: Neil Hanlon --- .../monitor-dashboard/templates/deploymentconfig.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/roles/openshift-apps/monitor-dashboard/templates/deploymentconfig.yml b/roles/openshift-apps/monitor-dashboard/templates/deploymentconfig.yml index 98437d4faf..0cedaa2fff 100644 --- a/roles/openshift-apps/monitor-dashboard/templates/deploymentconfig.yml +++ b/roles/openshift-apps/monitor-dashboard/templates/deploymentconfig.yml @@ -8,9 +8,8 @@ metadata: spec: replicas: 1 selector: - matchLabels: - app: monitor-dashboard - deploymentconfig: monitor-dashboard + app: monitor-dashboard + deploymentconfig: monitor-dashboard template: metadata: labels: @@ -89,4 +88,4 @@ spec: # name: grafana-notifiers # - configMap: # name: grafana-dashboards -# name: grafana-dashboards \ No newline at end of file +# name: grafana-dashboards