Update go-yaml with changes to indentation style #182
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the YAML packages (used by the controller to patch Kubernetes manifests) to fix long standing issues like panics that make the controller unusable for many users.
Dependencies changes:
gopkg.in/yaml.v3
fromv3.0.0-20200313102051-9f266ea9e77c
tov3.0.0-20200615113413-eeeca48fe776
(fix: controller crash when patching YAMLs with non-ASCII characters #140)sigs.k8s.io/kustomize/kyaml
fromv0.10.19
tov0.10.21
Breaking change
The
gopkg.in/yaml.v3
update means that the indentation style changed:From:
To:
While Kustomize kyaml is using an older version of go-yaml we can't hold onto this forever. I find it unacceptable for Flux to keep crashing due to bugs fixed upstream in go-yaml. Kustomize may chose to delay this update (see kubernetes-sigs/kustomize#3789 and kubernetes-sigs/kustomize#3946) but this doesn't mean we are obliged to do the same. The image automation is alpha and breaking changes like this are acceptable considering the tradeoffs. I hope at some point, go-yaml will be able to detect and preserve the original indentation but it seems unlikely go-yaml/yaml#661 (comment)
Closes #92