mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
fix build annotations getting lost after applying JSON 6902 patch
This commit is contained in:
@@ -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
|
||||
`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user