Skip to content

Conversation

@andyyu2004
Copy link
Owner

No description provided.

Tests how long strings are formatted in YAML output. Reference kustomize
wraps long strings across multiple lines at ~80 chars, while kustomizer
keeps them on single lines with quotes. Both are valid YAML.

Also shows field ordering difference in containers (env/image/name order).
Tests that resources maintain order through base and overlay processing,
and that namePrefix stacking works (p- + b- = p-b-).

Note: Kustomizer outputs resources in a different order than reference
kustomize. Reference outputs all base resources first, then overlay
resources. Kustomizer interleaves them differently. Both are valid
but order can matter for kubectl apply.

Also tests that Namespace resources don't get name prefixes.
Tests basic patchesStrategicMerge functionality - patch fields override
resource fields.

Note: patchesStrategicMerge is deprecated in favor of patches but still
supported.
Tests multiple transformers working together:
- namePrefix adds prefix to resource names
- commonLabels adds labels to metadata, selectors, and pod templates
- commonAnnotations adds annotations to metadata and pod templates

Note: Field ordering differs from reference kustomize.
Tests reusing the same base twice - once as-is and once with nameSuffix.
Name references (serviceAccountName) are correctly updated when nameSuffix
is applied to match the transformed resource names.

Note: Resource ordering differs from reference kustomize.
Tests merging configMapGenerator literals from base and overlay using
the behavior: merge option. Overlay adds new literals while preserving
base literals.

Note: Field ordering in data section differs from reference kustomize.
@andyyu2004 andyyu2004 enabled auto-merge (squash) February 1, 2026 02:45
@andyyu2004 andyyu2004 disabled auto-merge February 1, 2026 02:45
@andyyu2004 andyyu2004 enabled auto-merge (squash) February 1, 2026 02:45
@andyyu2004 andyyu2004 merged commit e39ac18 into master Feb 1, 2026
1 check passed
@andyyu2004 andyyu2004 deleted the more-tests-3 branch February 1, 2026 02:47
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