Skip to content

Commit f6af6c6

Browse files
authored
Merge pull request #1776 from agrare/update_add_openshift_provider_cluster_role
Update openshift provider ClusterRole API instructions
2 parents 96bd04b + db668db commit f6af6c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_includes/provider-ocp-mgt-token.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Run the following to obtain the token needed to add a Red Hat OpenShift provider
22

33
1. Obtain the `management` service account token name:
44

5-
# oc describe sa -n management-infra management-admin
5+
# oc describe sa -n $project_name $service_account_name
66
...
77
Tokens: management-admin-token-0f3fh
88
management-admin-token-q7a87
@@ -11,7 +11,7 @@ Run the following to obtain the token needed to add a Red Hat OpenShift provider
1111
output, replacing `management-admin-token-0f3fh` with the name of
1212
your token:
1313

14-
# oc describe secret -n management-infra management-admin-token-0f3fh
14+
# oc describe secret -n $project_name management-admin-token-0f3fh
1515
...
1616
Data
1717
====

managing_providers/containers_providers/red_hat_openshift_providers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ First you have to create a service-account with the proper permissions for {{ si
2121

2222
3. Create the cluster role
2323
```
24-
echo '{"apiVersion": "v1", "kind": "ClusterRole", "metadata": {"name": "management-manageiq-admin"}, "rules": [{"resources": ["pods/proxy"], "verbs": ["*"]}]}' | oc create -f -
24+
echo '{"apiVersion": "authorization.openshift.io/v1", "kind": "ClusterRole", "metadata": {"name": "management-manageiq-admin"}, "rules": [{"resources": ["pods/proxy"], "verbs": ["*"]}]}' | oc create -f -
2525
```
2626

2727
4. Apply roles and policies to the service account

0 commit comments

Comments
 (0)