-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update docs for Openshift support for the Validating Admission W…
…ebhook (#1650) Signed-off-by: danielm-codefresh <[email protected]>
- Loading branch information
1 parent
64c7e17
commit ad1b19e
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,26 @@ | |
|
||
kubectl create clusterrolebinding YOURNAME-cluster-admin-binding --clusterrole=cluster-admin [email protected] | ||
* On Openshift, make sure to grant `anyuid` scc to the service account. | ||
* On Openshift: | ||
- Make sure to grant `anyuid` scc to the service account. | ||
|
||
oc adm policy add-scc-to-user anyuid system:serviceaccount:argo-events:default | ||
- Add update permissions for the `deployments/finalizers` and `clusterroles/finalizers` of the argo-events-webhook ClusterRole(this is necessary for the vaildating admission controller) | ||
|
||
- apiGroups: | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- clusterroles/finalizers | ||
verbs: | ||
- update | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments/finalizers | ||
verbs: | ||
- update | ||
|
||
|
||
3. Deploy the eventbus. | ||
|
||
|
@@ -50,9 +67,25 @@ | |
|
||
kubectl create clusterrolebinding YOURNAME-cluster-admin-binding --clusterrole=cluster-admin [email protected] | ||
* On Openshift, make sure to grant `anyuid` scc to the service account. | ||
* On Openshift: | ||
- Make sure to grant `anyuid` scc to the service account. | ||
|
||
oc adm policy add-scc-to-user anyuid system:serviceaccount:argo-events:default | ||
- Add update permissions for the `deployments/finalizers` and `clusterroles/finalizers` of the argo-events-webhook ClusterRole(this is necessary for the vaildating admission controller) | ||
|
||
- apiGroups: | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- clusterroles/finalizers | ||
verbs: | ||
- update | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments/finalizers | ||
verbs: | ||
- update | ||
|
||
3. Deploy the eventbus. | ||
|
||
|