diff --git a/CHANGELOG.md b/CHANGELOG.md index e9f29aa..bf43b14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [1.9.3] - 2026-08-08 + +### Fixed +- **`ClientTrafficPolicy` targetRef namespace field removed**: `_gateway_clienttrafficpolicy.tpl` no longer renders `spec.targetRefs[0].namespace`. Envoy Gateway's `LocalPolicyTargetReference` type (used by ClientTrafficPolicy) has no `namespace` field in its CRD schema — policies only attach within their own namespace. The extra field passed silently under Helm 3's looser validation but fails server-side-apply schema validation under Helm 4 (`field not declared in schema`). + ## [1.9.1] - 2026-07-27 ### Added diff --git a/ci/test-chart/tests/gateway_clienttrafficpolicy_test.yaml b/ci/test-chart/tests/gateway_clienttrafficpolicy_test.yaml index 60cad0e..31839aa 100644 --- a/ci/test-chart/tests/gateway_clienttrafficpolicy_test.yaml +++ b/ci/test-chart/tests/gateway_clienttrafficpolicy_test.yaml @@ -33,9 +33,6 @@ tests: - equal: path: spec.targetRefs[0].name value: test-gateway - - equal: - path: spec.targetRefs[0].namespace - value: gateway-system - it: ClientTrafficPolicy should have correct connection settings documentSelector: diff --git a/src/common/Chart.yaml b/src/common/Chart.yaml index 20f5757..32f21e2 100644 --- a/src/common/Chart.yaml +++ b/src/common/Chart.yaml @@ -15,7 +15,7 @@ type: library # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.9.2 +version: 1.9.3 # This is the version number of the application being deployed. This version number should be diff --git a/src/common/templates/_gateway_clienttrafficpolicy.tpl b/src/common/templates/_gateway_clienttrafficpolicy.tpl index 4d63546..ea77c00 100644 --- a/src/common/templates/_gateway_clienttrafficpolicy.tpl +++ b/src/common/templates/_gateway_clienttrafficpolicy.tpl @@ -29,14 +29,10 @@ metadata: {{- include "harnesscommon.tplvalues.render" ( dict "value" $.Values.global.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} spec: - {{- $parentRefNamespace := $parentRef.namespace | default $.Release.Namespace }} targetRefs: - group: gateway.networking.k8s.io kind: Gateway name: {{ include "harnesscommon.tplvalues.render" ( dict "value" $parentRef.name "context" $) }} - {{- if $parentRefNamespace }} - namespace: {{ include "harnesscommon.tplvalues.render" ( dict "value" $parentRefNamespace "context" $) }} - {{- end }} {{- if or $clientPolicy.connection $clientPolicy.timeout $clientPolicy.http2 $clientPolicy.path }} {{- if $clientPolicy.path }} path: