Revert strict decoding of Kustomization due to regression in anchor handling (#5073)

* Revert strict decoding of Kustomization due to regression in anchor handling

* Empty commit
This commit is contained in:
Katrina Verey
2023-03-13 16:46:47 -04:00
committed by GitHub
parent bf6e6ad33b
commit dd520f8889
5 changed files with 39 additions and 12 deletions

View File

@@ -382,7 +382,7 @@ foo:
}
_, err = mf.Read()
if err == nil || err.Error() != "invalid Kustomization: error unmarshaling JSON: while decoding JSON: json: unknown field \"foo\"" {
if err == nil || err.Error() != "invalid Kustomization: json: unknown field \"foo\"" {
t.Fatalf("Expect an unknown field error but got: %v", err)
}
}