Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(template): establish backwards bug-compatibility for kubernetes m…
…anifest files (#6713) * fix(template): establish backwards bug-compatibility for kubernetes manifest files Template strings in Kubernetes manifest files are partially resolved for legacy reasons. The partial resolve behaviour has been changed to improve sanity in #6685 but for kubernetes manifest files, we need to have a version of the old behaviour. The expected legacy behaviour looks like this: - If template strings reference variables that do not exist there is no error - If a template string contains multiple template expressions, each expression can be partially resolved. - Template expressions are evaluated before parsing yaml, which means that valid yaml with template expressions can be resolved to invalid yaml (e.g. if variable values contain special characters) This legacy behaviour can lead to quite some surprises and UX problems, for example #5266 I would suggest that we remove this functionality in 0.14. * test: fix running tests on macos this commit fixes the "cannot find dockerfile" error that plagued us on macos * test: add integ tests for legacyAllowPartial behaviour in kubernetes manifests
- Loading branch information