Skip to content

Replaced ghodss/yaml with sigs.k8s.io/yaml [dev-v3] - #6016

Merged
mattfarina merged 1 commit into
helm:dev-v3from
osdrv:icanhazbroccoli-dev-v3-sigs-yaml
Jul 15, 2019
Merged

mattfarina merged 1 commit into
helm:dev-v3from
osdrv:icanhazbroccoli-dev-v3-sigs-yaml

Conversation

@osdrv

@osdrv osdrv commented Jul 12, 2019 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR proposes a replacement of github.com/ghodss/yaml with it's forked version maintained by SIG community. The replaceable library has low-to-none support activity unlike the latter. The SIG version is marked as a permanent fork. We believe the new Helm branch (v3) could benefit from using the Kubernetes community-maintained version on a long-term run as yaml parser is a key component of Helm chart rendering engine.

This commit locks sigs.k8s.io/yaml dependency version on 1.1.0 which is backwards compatible with ghodss/yaml 1.0.0 (this statement needs a remark: strictly speaking, the change is breaking: see the relevant comments: ghodss/yaml#50 (comment) and ghodss/yaml#50 (comment), but after a deep dive, Helm and it's dependencies are believed to be backwards compatible with the change).

This change also resolves the outdated dependency version lock for ghodss/yaml (currently 1.0.0) and makes it possible to port changes from #6010 to dev-v3.

Signed-off-by: Oleg Sidorov [email protected]

Special notes for your reviewer:
I was asked to port changes from #6010 to dev-v3. If this change makes sense, porting the fix would be a pretty trivial follow-up step.

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

This commit replaces usage of github.com/ghodss/yaml with it's forked
version maintained by SIG community. The replaced library has
low-to-none support activity unlike the latter. We believe the new
Helm branch could benefit from using the community-supported version on
a long-term run as yaml parser is a key component of Helm chart rendering
engine.

This commit locks sigs.k8s.io/yaml dependency version on 1.1.0 which
is backwards compatible with ghodss/yaml 1.0.0.

This change also resolves the outdated dependency version lock for
ghodss/yaml (currently 1.0.0) and makes it possible to port changes from
#6010 to dev-v3.

Signed-off-by: Oleg Sidorov <[email protected]>
@helm-bot helm-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 12, 2019
@osdrv osdrv changed the title Replaced ghodss/yaml with sigs.k8s.io/yaml Replaced ghodss/yaml with sigs.k8s.io/yaml in dev-v3 Jul 12, 2019
@osdrv osdrv changed the title Replaced ghodss/yaml with sigs.k8s.io/yaml in dev-v3 Replaced ghodss/yaml with sigs.k8s.io/yaml [dev-v3] Jul 12, 2019
@thomastaylor312

Copy link
Copy Markdown
Contributor

@adamreese or @bacongobbler can one of you take a look at this as well? This is a major dependency change that looks like it is ok, but I want two maintainers to sign off on it just to be sure

@thomastaylor312 thomastaylor312 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran this with the acceptance test suite @jdolitsky wrote and everything seems to be in working order. Thanks for doing all the research on backwards compatibility @icanhazbroccoli!

@mattfarina mattfarina left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being that the existing lib we use has not had a release in 2 years but there have been some features and bug fixes merged since the release... it's worth using a maintained copy of the library. The license didn't change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants