Skip to content

Conversation

@chandler-solo
Copy link
Contributor

Description

A bad rebase/merge in #12498 removed some testing.

The testing is now better because it finds more helm chart lint. Hence some charts have changed. The error message is more helpful, too.

version.Version is mocked so that tests pass locally, not just on CI, and REFRESH_GOLDEN=true works locally too.

Change Type

/kind cleanup

Changelog

NONE

Additional Notes

A bad rebase/merge in kgateway-dev#12498 removed some testing.

The testing is now better because it finds more helm chart lint. Hence some
charts have changed. The error message is more helpful, too.

version.Version is mocked so that tests pass locally, not just on CI, and
REFRESH_GOLDEN=true works locally too.

Signed-off-by: David L. Chandler <[email protected]>
@github-actions github-actions bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none labels Oct 9, 2025
Failures look like:

--- FAIL: TestRenderHelmChart (0.10s)
    --- FAIL: TestRenderHelmChart/agentgateway_OmitDefaultSecurityContext_true_GWP_via_GWC (0.01s)
        deployer_helm.go:144:
            	Error Trace:	/Users/davidchandler/k_deployer-test-validateyaml-again/test/deployer/deployer_helm.go:144
            	            				/Users/davidchandler/k_deployer-test-validateyaml-again/test/deployer/internal_helm_test.go:74
            	Error:      	Should be empty, but was   bytes.Join({
            	            	  	"---\n# Source: kgateway-proxy/templates/gateway/agent-gateway-dep",
            	            	  	"loyment.yaml\napiVersion: v1\nkind: ServiceAccount",
            	            	- 	" DLC",
            	            	  	"\nmetadata:\n  name: gw\n  labels:\n    kgateway: kube-gateway\n    h",
            	            	  	"elm.sh/chart: kgateway-proxy-1.0.0-ci1\n    app.kubernetes.io/nam",
            	            	  	... // 4944 identical bytes
            	            	  }, "")
            	Test:       	TestRenderHelmChart/agentgateway_OmitDefaultSecurityContext_true_GWP_via_GWC
            	Messages:   	  bytes.Join({
            	            	  	"---\n# Source: kgateway-proxy/templates/gateway/agent-gateway-dep",
            	            	  	"loyment.yaml\napiVersion: v1\nkind: ServiceAccount",
            	            	- 	" DLC",
            	            	  	"\nmetadata:\n  name: gw\n  labels:\n    kgateway: kube-gateway\n    h",
            	            	  	"elm.sh/chart: kgateway-proxy-1.0.0-ci1\n    app.kubernetes.io/nam",
            	            	  	... // 4944 identical bytes
            	            	  }, "")
            	            	%!(EXTRA string=the golden file, which can be refreshed via `REFRESH_GOLDEN=true go test ./test/deployer', is test/deployer/testdata/agentgateway-omitdefaultsecuritycontext-out.yaml)

Signed-off-by: David L. Chandler <[email protected]>
@timflannagan timflannagan added this pull request to the merge queue Oct 10, 2025
@lgadban lgadban removed this pull request from the merge queue due to a manual request Oct 10, 2025
Signed-off-by: David L. Chandler <[email protected]>
@lgadban lgadban enabled auto-merge October 10, 2025 16:30
@lgadban lgadban added this pull request to the merge queue Oct 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 10, 2025
@lgadban lgadban added this pull request to the merge queue Oct 10, 2025
Merged via the queue into kgateway-dev:main with commit fde80a5 Oct 10, 2025
39 of 40 checks passed
chandler-solo added a commit to chandler-solo/kgateway that referenced this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants