Commit 290dc91
committed
refactor(gateway-helm-chart): only rewrite chart-default image repos
Previously the subscription rewrite triggered for any repository value
starting with `ghcr.io/wso2/api-platform/`, which silently re-mapped
explicit overrides such as SHA-pinned or canary references that happen
to keep the WSO2 namespace prefix (e.g. `gateway-controller-canary`).
Tighten the gate from a prefix check to an exact-default match by
passing each component's canonical default repository through a new
`defaultRepository` parameter on the `componentImage` helper. Rewriting
now happens only when the user has not overridden `image.repository`;
any explicit value — including ones still under the WSO2 GHCR namespace
— passes through verbatim.
Addresses CodeRabbit review feedback on #2017.1 parent af767b3 commit 290dc91
3 files changed
Lines changed: 9 additions & 6 deletions
File tree
- kubernetes/helm/gateway-helm-chart/templates
- gateway
- controller
- gateway-runtime
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | | - | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | | - | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments