Skip to content

Commit 4fcebc5

Browse files
TheRealJonclaude
andcommitted
CONSOLE-4767: Grant console service account watch permissions for ClusterCatalogs
Add get, list, and watch permissions for clustercatalogs in the operators.coreos.com API group to the console ClusterRole. This enables the console backend to monitor ClusterCatalog resources in real-time and provide accurate OperatorHub status updates. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 199b6e4 commit 4fcebc5

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

manifests/03-rbac-role-cluster.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,14 @@ rules:
162162
- validatingwebhookconfigurations
163163
verbs:
164164
- get
165+
- apiGroups:
166+
- operators.coreos.com
167+
resources:
168+
- clustercatalogs
169+
verbs:
170+
- get
171+
- list
172+
- watch
165173
- apiGroups:
166174
- operators.coreos.com
167175
resources:

pkg/console/operator/operator.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,3 @@ func (c *consoleOperator) removeConsole(ctx context.Context, operatorConfig *ope
418418
statusHandler.AddConditions(statusHandler.ResetConditions(operatorConfig.Status.Conditions))
419419
return statusHandler.FlushAndReturn(err)
420420
}
421-

pkg/console/subresource/configmap/tech_preview_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ func TestTechPreviewEnabled(t *testing.T) {
8989
&corev1.ConfigMap{},
9090
infrastructureConfig,
9191
route,
92-
0, // inactivityTimeoutSeconds
92+
0, // inactivityTimeoutSeconds
9393
[]*consolev1.ConsolePlugin{}, // availablePlugins
94-
[]string{"amd64"}, // nodeArchitectures
95-
[]string{"linux"}, // nodeOperatingSystems
96-
false, // copiedCSVsDisabled
97-
false, // contentSecurityPolicyEnabled
98-
map[string]string{}, // telemetryConfig
99-
"console.test.cluster", // consoleHost
94+
[]string{"amd64"}, // nodeArchitectures
95+
[]string{"linux"}, // nodeOperatingSystems
96+
false, // copiedCSVsDisabled
97+
false, // contentSecurityPolicyEnabled
98+
map[string]string{}, // telemetryConfig
99+
"console.test.cluster", // consoleHost
100100
tt.args.techPreviewEnabled,
101101
)
102102

@@ -119,4 +119,4 @@ func TestTechPreviewEnabled(t *testing.T) {
119119
}
120120
})
121121
}
122-
}
122+
}

0 commit comments

Comments
 (0)