Skip to content

Commit

Permalink
feat: make expressions router default in kong/ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo committed Nov 9, 2023
1 parent 136deb5 commit 10ec715
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/ingress/templates/validation.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- /* Validate 'expressions' router flavor is not used with KIC < 3.0 */}}
{{- if and .Values.controller.ingressController.enabled
(eq .Values.gateway.env.router_flavor "expressions")
(semverCompare "< 3.0" (include "kong.effectiveVersion" .Values.controller.ingressController.image))
-}}
{{- fail (printf "expressions router flavor is not supported with ingress controller %s" .Values.controller.ingressController.image.tag ) -}}
{{- end -}}
1 change: 1 addition & 0 deletions charts/ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ gateway:
env:
role: traditional
database: "off"
router_flavor: "expressions"

0 comments on commit 10ec715

Please sign in to comment.