Skip to content

Commit cd7d5fa

Browse files
authored
Update README.md
1 parent b1b86b6 commit cd7d5fa

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ creates tokens for the [oc-gate](https://github.com/yaacov/oc-gate) service
1212
Install using [operator-sdk](https://sdk.operatorframework.io/docs/installation/)
1313

1414
```bash
15-
# Use default namespace
16-
oc project default
15+
# Use oc-gate namespace
16+
oc project oc-gate
1717

18-
# Install
19-
operator-sdk run bundle quay.io/yaacov/oc-gate-operator-bundle:v0.0.1
18+
# Add privileged security context to the user running the operator
19+
oc adm policy add-scc-to-user privileged -z default -n oc-gate
20+
21+
# Add the private key secret used to generate tokens
22+
oc create -n oc-gate-operator-system secret generic oc-gate-jwt-secret --from-file=test/cert.pem --from-file=test/key.pem
23+
24+
# Install the operator
25+
operator-sdk run bundle quay.io/yaacov/oc-gate-operator-bundle:v0.0.1 -n oc-gate
2026

2127
# Un-Install
2228
operator-sdk cleanup oc-gate-operator

0 commit comments

Comments
 (0)