Skip to content

Conversation

@andyyu2004
Copy link
Owner

No description provided.

…d bases

Tests namePrefix stacking with shared bases and PersistentVolumeClaim name references.

Source: basereusenameprefix_test.go:42
Tests that patches with target selectors don't change the original
resource's kind, apiVersion, or name even when patch has different values.

Source: gvknpatch_test.go:15
Tests that resources can have the same name if they're in different
namespaces. Validates fix for kustomize Issue #1044.

Test includes:
- Two Secrets with name "dummy" in different namespaces
- ClusterRole that references secrets by name
Tests that configMapGenerator with literals correctly quotes numbers
and boolean values:
- year=2020 becomes year: "2020"
- crisis=true becomes crisis: "true"

Test passes with resource ordering difference (configmap before service).
Tests that null values in YAML are preserved correctly through
kustomize processing (e.g., args: null).
Tests that null values in YAML are preserved for volumes field
(volumes: null).
Tests that numeric-looking strings in commonLabels are properly
quoted to remain strings (version: "1").

Note: commonLabels is deprecated in favor of labels but still supported.
@andyyu2004 andyyu2004 enabled auto-merge (squash) February 1, 2026 01:28
@andyyu2004 andyyu2004 merged commit 7eeb448 into master Feb 1, 2026
1 check passed
@andyyu2004 andyyu2004 deleted the more-tests-3 branch February 1, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants