Skip to content

Commit 26fdd20

Browse files
committed
docs: sharpen the instructions for creating/update oauthclient
Signed-off-by: Zvi Grinberg <[email protected]>
1 parent 72d8524 commit 26fdd20

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

kustomize/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,16 @@ EOF
115115
116116
5. Create the `oauth-secret.env` file containing the `client-secret` and `openshift-domain` values required by the [ExploitIQ Client](./base/exploit_iq_client.yaml) configuration.
117117

118-
Replace `some-long-secret-used-by-the-oauth-client` with a more secure, unique secret
118+
If openshift resource of kind `OAuthClient` named `exploit-iq-client` exists, just get the secret from there:
119+
```shell
120+
export OAUTH_CLIENT_SECRET=$(oc get oauthclient exploit-iq-client -o jsonpath='{..secret}')
121+
```
122+
Otherwise, Replace `some-long-secret-used-by-the-oauth-client` with a more secure, unique secret of your own:
119123

120124
```shell
121125
export OAUTH_CLIENT_SECRET="some-long-secret-used-by-the-oauth-client"
122126
```
123127

124-
125128
```shell
126129
cat > base/oauth-secrets.env << EOF
127130
client-secret=$OAUTH_CLIENT_SECRET
@@ -168,7 +171,7 @@ redirectURIs:
168171
- "http://$(oc get route exploit-iq-client -o jsonpath='{.spec.host}')/app/index.html"
169172
EOF
170173
```
171-
Otherwise, just add your route to the existing `OAuthClient` CR object:
174+
Otherwise ( if creating `OAuthClient` instance got error because it's already exists in the cluster) , just add your route to the existing `OAuthClient` CR object:
172175
```shell
173176
export HTTPS_ROUTE=https://$(oc get route exploit-iq-client -o jsonpath='{.spec.host}')/app/index.html
174177
export HTTP_ROUTE=http://$(oc get route exploit-iq-client -o jsonpath='{.spec.host}')/app/index.html

0 commit comments

Comments
 (0)