Skip to content

Commit ebd2c51

Browse files
committed
test: update TestFnContainerEnvVars expectation for quote preservation
After switching Resource.AsYAML() to use RNode.MustString(), YAML output now preserves original quotes from the source YAML. The template uses %q which generates quoted values, and these quotes are now preserved in the output. Update the test expectation accordingly. This is a follow-up to the MustString() migration in PR kubernetes-sigs#6046.
1 parent 3d2ba5a commit ebd2c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/krusty/fnplugin_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,11 +735,11 @@ template: |
735735
actual, err := m.AsYaml()
736736
require.NoError(t, err)
737737
assert.Equal(t, `apiVersion: v1
738-
data:
739-
value: value
740738
kind: ConfigMap
741739
metadata:
742740
name: env
741+
data:
742+
value: "value"
743743
`, string(actual))
744744
}
745745

0 commit comments

Comments
 (0)