fix: controller has no right to watch deployment (#1089)

Co-authored-by: Kent Dong <ch3cho@qq.com>
This commit is contained in:
xu.zhao
2024-07-15 16:34:24 +08:00
committed by GitHub
parent 5041277be3
commit 85219b6c53

View File

@@ -61,7 +61,7 @@ rules:
# discovery and routing # discovery and routing
- apiGroups: [""] - apiGroups: [""]
resources: ["pods", "nodes", "services", "namespaces", "endpoints"] resources: ["pods", "nodes", "services", "namespaces", "endpoints", "deployments"]
verbs: ["get", "list", "watch"] verbs: ["get", "list", "watch"]
- apiGroups: ["discovery.k8s.io"] - apiGroups: ["discovery.k8s.io"]
resources: ["endpointslices"] resources: ["endpointslices"]