fix build annotations getting lost after applying JSON 6902 patch

This commit is contained in:
Julian van den Berkmortel
2021-11-10 21:41:11 +01:00
parent b16e4ec566
commit b6cb6c8ae9
7 changed files with 45 additions and 3 deletions

View File

@@ -1647,7 +1647,7 @@ spec:
`)
}
// test for #4111, currently demonstrates incorrect behaviour
// test for #4111
func TestPatchPreservesInternalAnnotations(t *testing.T) {
th := kusttest_test.MakeHarness(t)
th.WriteK(".", `
@@ -1697,7 +1697,7 @@ spec:
containers:
- image: fluentd:latest
name: fluentd
serviceAccountName: fluentd-sa
serviceAccountName: fluentd-sa-abc
---
apiVersion: v1
kind: ServiceAccount
@@ -1706,4 +1706,4 @@ metadata:
note: this is a test annotation
name: fluentd-sa-abc
`)
}
}