Skip to content

Commit f51aef7

Browse files
Merge pull request #2575 from jgbernalp/remove-old-plugin-configmap-delete
OU-515: remove old nginx configmap deletion
2 parents 4e74c9d + 3dcd98d commit f51aef7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pkg/tasks/monitoring_plugin.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import (
1818
"context"
1919
"fmt"
2020

21-
v1 "k8s.io/api/core/v1"
22-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2321
"k8s.io/klog/v2"
2422

2523
"github.com/openshift/cluster-monitoring-operator/pkg/client"
@@ -72,19 +70,6 @@ func (t *MonitoringPluginTask) Run(ctx context.Context) error {
7270
}
7371
}
7472

75-
{ // config map
76-
// Deletes the config map if it exists as it is not required anymore.
77-
// This can be removed in 4.19 release. see https://issues.redhat.com/browse/OU-515
78-
if err := t.client.DeleteConfigMap(ctx, &v1.ConfigMap{
79-
ObjectMeta: metav1.ObjectMeta{
80-
Namespace: "openshift-monitoring",
81-
Name: "monitoring-plugin",
82-
},
83-
}); err != nil {
84-
return fmt.Errorf("deleting Console Plugin ConfigMap failed: %w", err)
85-
}
86-
}
87-
8873
{ // service acccount
8974
sa, err := t.factory.MonitoringPluginServiceAccount()
9075
if err != nil {

0 commit comments

Comments
 (0)