You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kustomize/README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,13 +115,16 @@ EOF
115
115
116
116
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.
117
117
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:
- "http://$(oc get route exploit-iq-client -o jsonpath='{.spec.host}')/app/index.html"
169
172
EOF
170
173
```
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:
172
175
```shell
173
176
export HTTPS_ROUTE=https://$(oc get route exploit-iq-client -o jsonpath='{.spec.host}')/app/index.html
174
177
export HTTP_ROUTE=http://$(oc get route exploit-iq-client -o jsonpath='{.spec.host}')/app/index.html
0 commit comments