-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change default in kong/kong, use file:// to refer to subchart in the …
…same repo
- Loading branch information
Showing
12 changed files
with
84 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
dependencies: | ||
- name: kong | ||
repository: https://charts.konghq.com | ||
version: 2.31.0 | ||
repository: file://../kong/ | ||
version: 2.32.0 | ||
- name: kong | ||
repository: https://charts.konghq.com | ||
version: 2.31.0 | ||
digest: sha256:2897c91fb6e37c04f99a413dac85f991fed223591b8de327a04795e27b90a617 | ||
generated: "2023-11-06T14:36:11.845865+01:00" | ||
repository: file://../kong/ | ||
version: 2.32.0 | ||
digest: sha256:237d8d361b79638a5e0730a476383ff38e0dc0e89d8bf16a68d4ae59b7066464 | ||
generated: "2023-11-13T10:56:42.680929+01:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,3 @@ gateway: | |
env: | ||
role: traditional | ||
database: "off" | ||
router_flavor: "expressions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{{- /* Validate 'expressions' router flavor is not used with KIC < 2.10 as it's not supported */}} | ||
{{- if and .Values.ingressController.enabled | ||
(eq .Values.env.router_flavor "expressions") | ||
(semverCompare "< 2.10" (include "kong.effectiveVersion" .Values.ingressController.image)) | ||
-}} | ||
{{- fail (printf ` | ||
❌ Error! | ||
"kong/kong" chart in version 2.32.0 has introduced "env.router_flavor" value defaulting to "expressions". | ||
"expressions" router flavor is not supported with Kong Ingress Controller %q that you're using. | ||
✅ How to fix it (alternatives) | ||
1. Upgrade to Kong Ingress Controller 3.0 to use this feature. | ||
2. If you want to keep using your Kong Ingress Controller version, set "env.router_flavor" to "traditional" to | ||
backoff to the previous router flavor in your values.yaml: | ||
env: | ||
router_flavor: "traditional"` .Values.ingressController.image.tag ) -}} | ||
{{- end -}} | ||
|
||
{{- /* Validate that when 'expressions' router flavor is used with KIC < 3.0, feature flag must be set. */ -}} | ||
{{- if and (.Values.ingressController.enabled) | ||
(eq .Values.env.router_flavor "expressions") | ||
(not (contains "ExpressionRoutes=true" (default "" .Values.ingressController.env.feature_gates))) | ||
(semverCompare "< 3.0" (include "kong.effectiveVersion" .Values.ingressController.image)) -}} | ||
{{- fail (printf ` | ||
❌ Error! | ||
"kong/kong" chart in version 2.32.0 has introduced "env.router_flavor" value defaulting to "expressions". | ||
"expressions" router flavor is not supported with Kong Ingress Controller %q that you're using. | ||
✅ How to fix it (alternatives) | ||
1. Upgrade to Kong Ingress Controller 3.0 to use this feature. | ||
2. Set "ingressController.env.feature_gates" to "ExpressionRoutes=true" to enable this feature in your values.yaml: | ||
ingressController: | ||
env: | ||
feature_gates: "ExpressionRoutes=true" | ||
3. Set "env.router_flavor" to "traditional" to use the previous router flavor in your values.yaml: | ||
env: | ||
router_flavor: "traditional"` .Values.ingressController.image.tag) -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters