Skip to content

Commit 9b88e08

Browse files
authored
Fix disabling of self-provisioning (#8109)
In fa6e3ce, the intent was to patch self-provisioning clusterrolebingind to clear the subjects. This does not work for clusters where the CRB does not exists. Instead of doing different change base on cluster, if we do client side apply with a complete CRB in argo, it will work in both cases, when CRB exist and when it does not. Signed-off-by: Hugo Ares <[email protected]>
1 parent fa6e3ce commit 9b88e08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

configs/disable-self-provisioning-for-all-cluster/self-provisioners_clusterrolebinding.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ kind: ClusterRoleBinding
22
apiVersion: rbac.authorization.k8s.io/v1
33
metadata:
44
annotations:
5-
argocd.argoproj.io/sync-options: ServerSideApply=true
65
rbac.authorization.kubernetes.io/autoupdate: 'false'
76
name: self-provisioners
7+
roleRef:
8+
apiGroup: rbac.authorization.k8s.io
9+
kind: ClusterRole
10+
name: self-provisioner
811
subjects: [] # no one is allowed here

0 commit comments

Comments
 (0)