Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions ci/test-chart/tests/gateway_clienttrafficpolicy_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions src/common/templates/_gateway_clienttrafficpolicy.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading