Skip to content

Commit 5d98307

Browse files
committed
[doc] remove JWT dependency
- Remove the JWT dependency in favor of the command used in the installer to avoid JWT version/flavor mismatching. Also one less required tool for the user. Signed-off-by: Brent Salisbury <bsalisbu@redhat.com>
1 parent 18fb484 commit 5d98307

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

deployment/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,7 @@ kubectl -n kuadrant-system patch limitador limitador --type merge \
173173
Patch `AuthPolicy` with the correct audience for Openshift Identities:
174174

175175
```shell
176-
PROJECT_DIR=$(git rev-parse --show-toplevel)
177-
AUD="$(kubectl create token default --duration=10m \
178-
| jwt decode --json - \
179-
| jq -r '.payload.aud[0]')"
176+
AUD="$(kubectl create token default --duration=10m 2>/dev/null | cut -d. -f2 | base64 -d 2>/dev/null | jq -r '.aud[0]' 2>/dev/null)"
180177

181178
echo "Patching AuthPolicy with audience: $AUD"
182179

@@ -187,7 +184,7 @@ kubectl patch authpolicy maas-api-auth-policy -n maas-api \
187184
path:"/spec/rules/authentication/openshift-identities/kubernetesTokenReview/audiences/0",
188185
value:$aud
189186
}]')"
190-
187+
191188
```
192189
## Testing the Deployment
193190

0 commit comments

Comments
 (0)