Skip to content

Commit f32348e

Browse files
committed
OSD-13909 - Remove exception allowing prometheusrules to be created in 'openshift-monitoring'
1 parent 4a1c0c6 commit f32348e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/webhooks/prometheusrule/prometheusrule.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ func (s *prometheusruleWebhook) authorized(request admissionctl.Request) admissi
8484
if hookconfig.IsPrivilegedNamespace(pr.GetNamespace()) &&
8585
// TODO: [OSD-13680] Remove this exception for openshift-customer-monitoring
8686
pr.GetNamespace() != "openshift-customer-monitoring" &&
87-
pr.GetNamespace() != "openshift-user-workload-monitoring" &&
88-
// TODO: [OSD-13909] Remove this exception for openshift-monitoring
89-
pr.GetNamespace() != "openshift-monitoring" {
87+
pr.GetNamespace() != "openshift-user-workload-monitoring" {
9088
log.Info(fmt.Sprintf("%s operation detected on managed namespace: %s", request.Operation, pr.GetNamespace()))
9189
if isAllowedUser(request) {
9290
ret = admissionctl.Allowed(fmt.Sprintf("User can do operations on PrometheusRules"))

0 commit comments

Comments
 (0)