Commit 130927b
committed
fix(deploy): use cluster audience in OIDC AuthPolicy patch
The OIDC patch template hardcoded https://kubernetes.default.svc as the
TokenReview audience, but HyperShift/ROSA/Konflux clusters use non-standard
audiences. After the merge patch applied, OpenShift tokens got 401 because
the audience didn't match.
Add __CLUSTER_AUDIENCE__ placeholder to the OIDC template and resolve it
via get_cluster_audience before patching.
Signed-off-by: Wen Liang <liangwen12year@gmail.com>1 parent 7eafff8 commit 130927b
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1496 | 1496 | | |
1497 | 1497 | | |
1498 | 1498 | | |
| 1499 | + | |
1499 | 1500 | | |
1500 | 1501 | | |
1501 | 1502 | | |
| |||
1504 | 1505 | | |
1505 | 1506 | | |
1506 | 1507 | | |
| 1508 | + | |
1507 | 1509 | | |
1508 | 1510 | | |
1509 | 1511 | | |
| |||
1562 | 1564 | | |
1563 | 1565 | | |
1564 | 1566 | | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1565 | 1572 | | |
1566 | 1573 | | |
1567 | | - | |
| 1574 | + | |
1568 | 1575 | | |
1569 | 1576 | | |
1570 | 1577 | | |
| |||
0 commit comments