diff --git a/parcellab/common/Chart.yaml b/parcellab/common/Chart.yaml index 704b01d..e093e50 100644 --- a/parcellab/common/Chart.yaml +++ b/parcellab/common/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: common description: A Helm chart library for parcelLab charts type: library -version: 1.3.1 +version: 1.3.2 maintainers: - name: parcelLab email: engineering@parcellab.com diff --git a/parcellab/common/templates/_backendtrafficpolicy.tpl b/parcellab/common/templates/_backendtrafficpolicy.tpl index 77a6008..94819c2 100644 --- a/parcellab/common/templates/_backendtrafficpolicy.tpl +++ b/parcellab/common/templates/_backendtrafficpolicy.tpl @@ -5,10 +5,10 @@ dict "Values" "the values scope" "Release" .Release - "route" "the current HTTPRoute object" - "index" "the httpRoutes index" - "routeName" "the rendered HTTPRoute name" - "globalLabels" "common labels" + "route" "the current HTTPRoute object (optional)" + "index" "the httpRoutes index (optional)" + "routeName" "the rendered HTTPRoute name (optional)" + "globalLabels" "common labels (optional)" ) }} */}} @@ -16,16 +16,32 @@ {{- $route := .route | default dict -}} {{- $index := .index | default 0 -}} {{- $routeName := .routeName | default "" -}} -{{- $globalLabels := .globalLabels | default dict -}} +{{- $globalLabels := .globalLabels | default (include "common.labels" .) -}} {{- $serviceNamespace := .Release.Namespace -}} -{{- $backendTrafficPolicy := $route.backendTrafficPolicy -}} +{{- $envoy := .Values.envoy | default dict -}} +{{- $policyOverride := .policy | default dict -}} +{{- $hasPolicyOverride := and (hasKey . "policy") (ne (len $policyOverride) 0) -}} +{{- $hasRoutePolicy := and (hasKey . "route") (ne (len $route) 0) (hasKey $route "backendTrafficPolicy") -}} +{{- $backendTrafficPolicy := ternary $policyOverride (ternary $route.backendTrafficPolicy $envoy.backendTrafficPolicy $hasRoutePolicy) $hasPolicyOverride -}} {{- if $backendTrafficPolicy }} {{- $btpEnabled := default true $backendTrafficPolicy.enabled -}} {{- if $btpEnabled -}} -{{- $btpName := default (printf "%s-backend-traffic-policy" $routeName) $backendTrafficPolicy.name -}} +{{- $btpName := default (printf "%s-backend-traffic-policy" (ternary $routeName (include "common.fullname" .) $hasRoutePolicy)) $backendTrafficPolicy.name -}} {{- $btpLabels := $backendTrafficPolicy.labels | default dict -}} {{- $btpAnnotations := $backendTrafficPolicy.annotations | default dict -}} +{{- $btpTargetRef := $backendTrafficPolicy.targetRef | default dict -}} +{{- $btpHasTargetRef := and $btpTargetRef (ne (len $btpTargetRef) 0) -}} {{- $btpTargetRefs := $backendTrafficPolicy.targetRefs | default list -}} +{{- $btpTargetSelectors := list -}} +{{- if $backendTrafficPolicy.targetSelectors }} + {{- if kindIs "slice" $backendTrafficPolicy.targetSelectors }} + {{- $btpTargetSelectors = $backendTrafficPolicy.targetSelectors -}} + {{- else }} + {{- $btpTargetSelectors = list $backendTrafficPolicy.targetSelectors -}} + {{- end }} +{{- else if $backendTrafficPolicy.targetSelector }} + {{- $btpTargetSelectors = list $backendTrafficPolicy.targetSelector -}} +{{- end }} {{- $btpSpec := $backendTrafficPolicy.spec | default dict -}} {{- if eq (len $btpSpec) 0 -}} {{- $btpSpec = deepCopy $backendTrafficPolicy -}} @@ -33,18 +49,42 @@ {{- $_ := unset $btpSpec "name" -}} {{- $_ := unset $btpSpec "labels" -}} {{- $_ := unset $btpSpec "annotations" -}} +{{- $_ := unset $btpSpec "targetRef" -}} {{- $_ := unset $btpSpec "targetRefs" -}} +{{- $_ := unset $btpSpec "targetSelectors" -}} +{{- $_ := unset $btpSpec "targetSelector" -}} {{- $_ := unset $btpSpec "spec" -}} {{- end -}} +{{- $btpSpecHasTargetRef := hasKey $btpSpec "targetRef" -}} {{- $btpSpecHasTargetRefs := hasKey $btpSpec "targetRefs" -}} +{{- $btpSpecHasTargetSelectors := hasKey $btpSpec "targetSelectors" -}} +{{- if $btpHasTargetRef -}} +{{- if $btpSpecHasTargetRef -}} +{{- $_ := unset $btpSpec "targetRef" -}} +{{- $btpSpecHasTargetRef = false -}} +{{- end -}} +{{- end -}} {{- if gt (len $btpTargetRefs) 0 -}} {{- if $btpSpecHasTargetRefs -}} {{- $_ := unset $btpSpec "targetRefs" -}} {{- $btpSpecHasTargetRefs = false -}} {{- end -}} {{- end -}} -{{- if and (eq (len $btpSpec) 0) (eq (len $btpTargetRefs) 0) (not $btpSpecHasTargetRefs) -}} +{{- if gt (len $btpTargetSelectors) 0 -}} +{{- if $btpSpecHasTargetSelectors -}} +{{- $_ := unset $btpSpec "targetSelectors" -}} +{{- $btpSpecHasTargetSelectors = false -}} +{{- end -}} +{{- end -}} +{{- if and (eq (len $btpSpec) 0) (not $btpHasTargetRef) (eq (len $btpTargetRefs) 0) (eq (len $btpTargetSelectors) 0) (not $btpSpecHasTargetRef) (not $btpSpecHasTargetRefs) (not $btpSpecHasTargetSelectors) -}} +{{- if $hasRoutePolicy -}} {{- fail (printf "envoy.httpRoutes[%d].backendTrafficPolicy requires spec or fields" $index) -}} +{{- else -}} +{{- fail "envoy.backendTrafficPolicy requires spec or fields" -}} +{{- end -}} +{{- end -}} +{{- if and (not $hasRoutePolicy) (not $btpHasTargetRef) (eq (len $btpTargetRefs) 0) (eq (len $btpTargetSelectors) 0) (not $btpSpecHasTargetRef) (not $btpSpecHasTargetRefs) (not $btpSpecHasTargetSelectors) -}} +{{- fail "envoy.backendTrafficPolicy.targetRef, targetRefs, or targetSelectors is required for global policy" -}} {{- end -}} --- apiVersion: gateway.envoyproxy.io/v1alpha1 @@ -62,10 +102,16 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: - {{- if gt (len $btpTargetRefs) 0 }} + {{- if $btpHasTargetRef }} + targetRef: + {{- toYaml $btpTargetRef | nindent 4 }} + {{- else if gt (len $btpTargetRefs) 0 }} targetRefs: {{- toYaml $btpTargetRefs | nindent 4 }} - {{- else if not $btpSpecHasTargetRefs }} + {{- else if gt (len $btpTargetSelectors) 0 }} + targetSelectors: + {{- toYaml $btpTargetSelectors | nindent 4 }} + {{- else if and $hasRoutePolicy (not $btpSpecHasTargetRef) (not $btpSpecHasTargetRefs) (not $btpSpecHasTargetSelectors) }} targetRefs: - group: gateway.networking.k8s.io kind: HTTPRoute @@ -74,6 +120,7 @@ spec: {{- if gt (len $btpSpec) 0 }} {{- toYaml $btpSpec | nindent 2 }} {{- end }} +{{""}} {{- end -}} {{- end -}} {{- end -}} diff --git a/parcellab/common/templates/_clienttrafficpolicy.tpl b/parcellab/common/templates/_clienttrafficpolicy.tpl index 7a5cc78..d37a993 100644 --- a/parcellab/common/templates/_clienttrafficpolicy.tpl +++ b/parcellab/common/templates/_clienttrafficpolicy.tpl @@ -5,10 +5,10 @@ dict "Values" "the values scope" "Release" .Release - "route" "the current HTTPRoute object" - "index" "the httpRoutes index" - "routeName" "the rendered HTTPRoute name" - "globalLabels" "common labels" + "route" "the current HTTPRoute object (optional)" + "index" "the httpRoutes index (optional)" + "routeName" "the rendered HTTPRoute name (optional)" + "globalLabels" "common labels (optional)" ) }} */}} @@ -16,16 +16,32 @@ {{- $route := .route | default dict -}} {{- $index := .index | default 0 -}} {{- $routeName := .routeName | default "" -}} -{{- $globalLabels := .globalLabels | default dict -}} +{{- $globalLabels := .globalLabels | default (include "common.labels" .) -}} {{- $serviceNamespace := .Release.Namespace -}} -{{- $clientTrafficPolicy := $route.clientTrafficPolicy -}} +{{- $envoy := .Values.envoy | default dict -}} +{{- $policyOverride := .policy | default dict -}} +{{- $hasPolicyOverride := and (hasKey . "policy") (ne (len $policyOverride) 0) -}} +{{- $hasRoutePolicy := and (hasKey . "route") (ne (len $route) 0) (hasKey $route "clientTrafficPolicy") -}} +{{- $clientTrafficPolicy := ternary $policyOverride (ternary $route.clientTrafficPolicy $envoy.clientTrafficPolicy $hasRoutePolicy) $hasPolicyOverride -}} {{- if $clientTrafficPolicy }} {{- $ctpEnabled := default true $clientTrafficPolicy.enabled -}} {{- if $ctpEnabled -}} -{{- $ctpName := default (printf "%s-client-traffic-policy" $routeName) $clientTrafficPolicy.name -}} +{{- $ctpName := default (printf "%s-client-traffic-policy" (ternary $routeName (include "common.fullname" .) $hasRoutePolicy)) $clientTrafficPolicy.name -}} {{- $ctpLabels := $clientTrafficPolicy.labels | default dict -}} {{- $ctpAnnotations := $clientTrafficPolicy.annotations | default dict -}} +{{- $ctpTargetRef := $clientTrafficPolicy.targetRef | default dict -}} +{{- $ctpHasTargetRef := and $ctpTargetRef (ne (len $ctpTargetRef) 0) -}} {{- $ctpTargetRefs := $clientTrafficPolicy.targetRefs | default list -}} +{{- $ctpTargetSelectors := list -}} +{{- if $clientTrafficPolicy.targetSelectors }} + {{- if kindIs "slice" $clientTrafficPolicy.targetSelectors }} + {{- $ctpTargetSelectors = $clientTrafficPolicy.targetSelectors -}} + {{- else }} + {{- $ctpTargetSelectors = list $clientTrafficPolicy.targetSelectors -}} + {{- end }} +{{- else if $clientTrafficPolicy.targetSelector }} + {{- $ctpTargetSelectors = list $clientTrafficPolicy.targetSelector -}} +{{- end }} {{- $ctpSpec := $clientTrafficPolicy.spec | default dict -}} {{- if eq (len $ctpSpec) 0 -}} {{- $ctpSpec = deepCopy $clientTrafficPolicy -}} @@ -33,18 +49,42 @@ {{- $_ := unset $ctpSpec "name" -}} {{- $_ := unset $ctpSpec "labels" -}} {{- $_ := unset $ctpSpec "annotations" -}} +{{- $_ := unset $ctpSpec "targetRef" -}} {{- $_ := unset $ctpSpec "targetRefs" -}} +{{- $_ := unset $ctpSpec "targetSelectors" -}} +{{- $_ := unset $ctpSpec "targetSelector" -}} {{- $_ := unset $ctpSpec "spec" -}} {{- end -}} +{{- $ctpSpecHasTargetRef := hasKey $ctpSpec "targetRef" -}} {{- $ctpSpecHasTargetRefs := hasKey $ctpSpec "targetRefs" -}} +{{- $ctpSpecHasTargetSelectors := hasKey $ctpSpec "targetSelectors" -}} +{{- if $ctpHasTargetRef -}} +{{- if $ctpSpecHasTargetRef -}} +{{- $_ := unset $ctpSpec "targetRef" -}} +{{- $ctpSpecHasTargetRef = false -}} +{{- end -}} +{{- end -}} {{- if gt (len $ctpTargetRefs) 0 -}} {{- if $ctpSpecHasTargetRefs -}} {{- $_ := unset $ctpSpec "targetRefs" -}} {{- $ctpSpecHasTargetRefs = false -}} {{- end -}} {{- end -}} -{{- if and (eq (len $ctpSpec) 0) (eq (len $ctpTargetRefs) 0) (not $ctpSpecHasTargetRefs) -}} +{{- if gt (len $ctpTargetSelectors) 0 -}} +{{- if $ctpSpecHasTargetSelectors -}} +{{- $_ := unset $ctpSpec "targetSelectors" -}} +{{- $ctpSpecHasTargetSelectors = false -}} +{{- end -}} +{{- end -}} +{{- if and (eq (len $ctpSpec) 0) (not $ctpHasTargetRef) (eq (len $ctpTargetRefs) 0) (eq (len $ctpTargetSelectors) 0) (not $ctpSpecHasTargetRef) (not $ctpSpecHasTargetRefs) (not $ctpSpecHasTargetSelectors) -}} +{{- if $hasRoutePolicy -}} {{- fail (printf "envoy.httpRoutes[%d].clientTrafficPolicy requires spec or fields" $index) -}} +{{- else -}} +{{- fail "envoy.clientTrafficPolicy requires spec or fields" -}} +{{- end -}} +{{- end -}} +{{- if and (not $hasRoutePolicy) (not $ctpHasTargetRef) (eq (len $ctpTargetRefs) 0) (eq (len $ctpTargetSelectors) 0) (not $ctpSpecHasTargetRef) (not $ctpSpecHasTargetRefs) (not $ctpSpecHasTargetSelectors) -}} +{{- fail "envoy.clientTrafficPolicy.targetRef, targetRefs, or targetSelectors is required for global policy" -}} {{- end -}} --- apiVersion: gateway.envoyproxy.io/v1alpha1 @@ -62,10 +102,16 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: - {{- if gt (len $ctpTargetRefs) 0 }} + {{- if $ctpHasTargetRef }} + targetRef: + {{- toYaml $ctpTargetRef | nindent 4 }} + {{- else if gt (len $ctpTargetRefs) 0 }} targetRefs: {{- toYaml $ctpTargetRefs | nindent 4 }} - {{- else if not $ctpSpecHasTargetRefs }} + {{- else if gt (len $ctpTargetSelectors) 0 }} + targetSelectors: + {{- toYaml $ctpTargetSelectors | nindent 4 }} + {{- else if and $hasRoutePolicy (not $ctpSpecHasTargetRef) (not $ctpSpecHasTargetRefs) (not $ctpSpecHasTargetSelectors) }} targetRefs: - group: gateway.networking.k8s.io kind: HTTPRoute diff --git a/parcellab/common/templates/_httproutes.tpl b/parcellab/common/templates/_httproutes.tpl index d31f029..e7d19f6 100644 --- a/parcellab/common/templates/_httproutes.tpl +++ b/parcellab/common/templates/_httproutes.tpl @@ -10,6 +10,8 @@ {{- if $envoy.enabled -}} {{- $gateway := default (dict "name" "gateway-api" "namespace" "envoy-gateway") $envoy.gateway -}} {{- $httproutes := default (list) $envoy.httpRoutes -}} +{{- $globalBackendTrafficPolicy := $envoy.backendTrafficPolicy | default dict -}} +{{- $globalClientTrafficPolicy := $envoy.clientTrafficPolicy | default dict -}} {{- $baseName := include "common.fullname" . -}} {{- $globalLabels := include "common.labels" . -}} {{- $serviceNamespace := .Release.Namespace -}} @@ -18,11 +20,58 @@ {{- $securityLabelKey := printf "%s/security-required" (include "common.parcellabtagsdomain" .) -}} {{- $rolloutServices := include "common.rolloutServicesMap" (dict "root" $root "baseName" $baseName) | fromJson -}} +{{- $globalBackendTrafficPolicyEnabled := and $globalBackendTrafficPolicy (default true $globalBackendTrafficPolicy.enabled) -}} +{{- $globalBackendTrafficPolicyHasTargetRef := or (and $globalBackendTrafficPolicy.targetRef (gt (len $globalBackendTrafficPolicy.targetRef) 0)) (and $globalBackendTrafficPolicy.spec (hasKey $globalBackendTrafficPolicy.spec "targetRef")) -}} +{{- $globalBackendTrafficPolicyHasTargetRefs := or (gt (len ($globalBackendTrafficPolicy.targetRefs | default list)) 0) (and $globalBackendTrafficPolicy.spec (hasKey $globalBackendTrafficPolicy.spec "targetRefs")) -}} +{{- $globalBackendTrafficPolicyHasTargetSelectors := or (gt (len ($globalBackendTrafficPolicy.targetSelectors | default list)) 0) (and $globalBackendTrafficPolicy.spec (hasKey $globalBackendTrafficPolicy.spec "targetSelectors")) -}} +{{- $globalBackendTrafficPolicyTargetRefs := list -}} +{{- if and $globalBackendTrafficPolicyEnabled (not $globalBackendTrafficPolicyHasTargetRef) (not $globalBackendTrafficPolicyHasTargetRefs) (not $globalBackendTrafficPolicyHasTargetSelectors) -}} +{{- range $index, $route := $httproutes }} +{{- if not (hasKey $route "backendTrafficPolicy") -}} +{{- $rawRouteName := default (printf "%s-%d" $baseName $index) $route.name -}} +{{- $sanitizedRouteName := trunc 63 (trimSuffix "-" (regexReplaceAll "[^a-z0-9-]" (lower $rawRouteName) "-")) -}} +{{- $routeName := default (printf "%s-%d" $baseName $index) $sanitizedRouteName -}} +{{- $globalBackendTrafficPolicyTargetRefs = append $globalBackendTrafficPolicyTargetRefs (dict "group" "gateway.networking.k8s.io" "kind" "HTTPRoute" "name" $routeName) -}} +{{- end -}} +{{- end -}} +{{- end -}} +{{- if and $globalBackendTrafficPolicyEnabled (or $globalBackendTrafficPolicyHasTargetRef $globalBackendTrafficPolicyHasTargetRefs $globalBackendTrafficPolicyHasTargetSelectors (gt (len $globalBackendTrafficPolicyTargetRefs) 0)) -}} +{{- $globalBackendPolicy := deepCopy $globalBackendTrafficPolicy -}} +{{- if and (not $globalBackendTrafficPolicyHasTargetRef) (not $globalBackendTrafficPolicyHasTargetRefs) (not $globalBackendTrafficPolicyHasTargetSelectors) (gt (len $globalBackendTrafficPolicyTargetRefs) 0) -}} +{{- $_ := set $globalBackendPolicy "targetRefs" $globalBackendTrafficPolicyTargetRefs -}} +{{- end -}} +{{ include "common.backendtrafficpolicy" (dict "Values" $root.Values "Release" $root.Release "Chart" $root.Chart "policy" $globalBackendPolicy) }} +{{- end }} + +{{- $globalClientTrafficPolicyEnabled := and $globalClientTrafficPolicy (default true $globalClientTrafficPolicy.enabled) -}} +{{- $globalClientTrafficPolicyHasTargetRef := or (and $globalClientTrafficPolicy.targetRef (gt (len $globalClientTrafficPolicy.targetRef) 0)) (and $globalClientTrafficPolicy.spec (hasKey $globalClientTrafficPolicy.spec "targetRef")) -}} +{{- $globalClientTrafficPolicyHasTargetRefs := or (gt (len ($globalClientTrafficPolicy.targetRefs | default list)) 0) (and $globalClientTrafficPolicy.spec (hasKey $globalClientTrafficPolicy.spec "targetRefs")) -}} +{{- $globalClientTrafficPolicyHasTargetSelectors := or (gt (len ($globalClientTrafficPolicy.targetSelectors | default list)) 0) (and $globalClientTrafficPolicy.spec (hasKey $globalClientTrafficPolicy.spec "targetSelectors")) -}} +{{- $globalClientTrafficPolicyTargetRefs := list -}} +{{- if and $globalClientTrafficPolicyEnabled (not $globalClientTrafficPolicyHasTargetRef) (not $globalClientTrafficPolicyHasTargetRefs) (not $globalClientTrafficPolicyHasTargetSelectors) -}} +{{- range $index, $route := $httproutes }} +{{- if not (hasKey $route "clientTrafficPolicy") -}} +{{- $rawRouteName := default (printf "%s-%d" $baseName $index) $route.name -}} +{{- $sanitizedRouteName := trunc 63 (trimSuffix "-" (regexReplaceAll "[^a-z0-9-]" (lower $rawRouteName) "-")) -}} +{{- $routeName := default (printf "%s-%d" $baseName $index) $sanitizedRouteName -}} +{{- $globalClientTrafficPolicyTargetRefs = append $globalClientTrafficPolicyTargetRefs (dict "group" "gateway.networking.k8s.io" "kind" "HTTPRoute" "name" $routeName) -}} +{{- end -}} +{{- end -}} +{{- end -}} +{{- if and $globalClientTrafficPolicyEnabled (or $globalClientTrafficPolicyHasTargetRef $globalClientTrafficPolicyHasTargetRefs $globalClientTrafficPolicyHasTargetSelectors (gt (len $globalClientTrafficPolicyTargetRefs) 0)) -}} +{{- $globalClientPolicy := deepCopy $globalClientTrafficPolicy -}} +{{- if and (not $globalClientTrafficPolicyHasTargetRef) (not $globalClientTrafficPolicyHasTargetRefs) (not $globalClientTrafficPolicyHasTargetSelectors) (gt (len $globalClientTrafficPolicyTargetRefs) 0) -}} +{{- $_ := set $globalClientPolicy "targetRefs" $globalClientTrafficPolicyTargetRefs -}} +{{- end -}} +{{ include "common.clienttrafficpolicy" (dict "Values" $root.Values "Release" $root.Release "Chart" $root.Chart "policy" $globalClientPolicy) }} +{{- end }} + {{- range $index, $route := $httproutes }} {{- $hosts := required (printf "envoy.httpRoutes[%d].hosts is required" $index) $route.hosts -}} {{- if eq (len $hosts) 0 -}} {{- fail (printf "envoy.httpRoutes[%d].hosts cannot be empty" $index) -}} {{- end -}} +{{- $policyRoute := $route -}} {{- $rawRouteName := default (printf "%s-%d" $baseName $index) $route.name -}} {{- $sanitizedRouteName := trunc 63 (trimSuffix "-" (regexReplaceAll "[^a-z0-9-]" (lower $rawRouteName) "-")) -}} {{- $routeName := default (printf "%s-%d" $baseName $index) $sanitizedRouteName }} @@ -69,8 +118,12 @@ spec: {{- toYaml (list $ruleCopy) | nindent 4 }} {{- end }} {{- end }} -{{ include "common.backendtrafficpolicy" (dict "Values" $root.Values "Release" $root.Release "route" $route "index" $index "routeName" $routeName "globalLabels" $globalLabels) }} -{{ include "common.clienttrafficpolicy" (dict "Values" $root.Values "Release" $root.Release "route" $route "index" $index "routeName" $routeName "globalLabels" $globalLabels) }} +{{- if hasKey $route "backendTrafficPolicy" }} +{{ include "common.backendtrafficpolicy" (dict "Values" $root.Values "Release" $root.Release "Chart" $root.Chart "route" $policyRoute "index" $index "routeName" $routeName "globalLabels" $globalLabels) }} +{{- end }} +{{- if hasKey $route "clientTrafficPolicy" }} +{{ include "common.clienttrafficpolicy" (dict "Values" $root.Values "Release" $root.Release "Chart" $root.Chart "route" $policyRoute "index" $index "routeName" $routeName "globalLabels" $globalLabels) }} +{{- end }} {{ end }} {{- end }} {{- end }} diff --git a/parcellab/microservice/Chart.yaml b/parcellab/microservice/Chart.yaml index b32100f..acb0b57 100644 --- a/parcellab/microservice/Chart.yaml +++ b/parcellab/microservice/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: microservice description: Simple microservice -version: 0.5.1 +version: 0.5.2 dependencies: - name: common version: "*" diff --git a/parcellab/microservice/values.yaml b/parcellab/microservice/values.yaml index 65e740c..536dbd9 100644 --- a/parcellab/microservice/values.yaml +++ b/parcellab/microservice/values.yaml @@ -65,6 +65,31 @@ envoy: - group: gateway.networking.k8s.io kind: Gateway name: gateway-api + # backendTrafficPolicy: + # # Global policy for all HTTPRoutes. If a route defines its own + # # backendTrafficPolicy, that route is excluded from the global policy. + # # enabled: true + # # targetSelectors: + # # - group: gateway.networking.k8s.io + # # kind: HTTPRoute + # # matchLabels: + # # app: my-app + # # targetRefs: + # # - group: gateway.networking.k8s.io + # # kind: HTTPRoute + # # name: my-default-route + # clientTrafficPolicy: + # # Global policy for all HTTPRoutes. If a route defines its own + # # clientTrafficPolicy, that route is excluded from the global policy. + # # enabled: true + # # targetSelectors: + # # - group: gateway.networking.k8s.io + # # kind: HTTPRoute + # # matchLabels: + # # app: my-app + # # timeout: + # # http: + # # idleTimeout: 60s httpRoutes: [] # - name: my-default-route # hosts: diff --git a/parcellab/monolith/Chart.yaml b/parcellab/monolith/Chart.yaml index 5d5baf8..9bb24af 100644 --- a/parcellab/monolith/Chart.yaml +++ b/parcellab/monolith/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: monolith description: Application that may define multiple services and cronjobs -version: 0.5.1 +version: 0.5.2 dependencies: - name: common version: "*" diff --git a/parcellab/monolith/values.yaml b/parcellab/monolith/values.yaml index 7929514..b0a08d6 100644 --- a/parcellab/monolith/values.yaml +++ b/parcellab/monolith/values.yaml @@ -94,6 +94,31 @@ envoy: - group: gateway.networking.k8s.io kind: Gateway name: gateway-api + # backendTrafficPolicy: + # # Global policy for all HTTPRoutes. If a route defines its own + # # backendTrafficPolicy, that route is excluded from the global policy. + # # enabled: true + # # targetSelectors: + # # - group: gateway.networking.k8s.io + # # kind: HTTPRoute + # # matchLabels: + # # app: my-app + # # targetRefs: + # # - group: gateway.networking.k8s.io + # # kind: HTTPRoute + # # name: my-default-route + # clientTrafficPolicy: + # # Global policy for all HTTPRoutes. If a route defines its own + # # clientTrafficPolicy, that route is excluded from the global policy. + # # enabled: true + # # targetSelectors: + # # - group: gateway.networking.k8s.io + # # kind: HTTPRoute + # # matchLabels: + # # app: my-app + # # timeout: + # # http: + # # idleTimeout: 60s httpRoutes: [] # - name: my-default-route # hosts: