Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to sigs.k8s.io/yaml #154

Merged
merged 1 commit into from
Jul 27, 2019
Merged

Conversation

ian-howell
Copy link
Contributor

This updates the current YAML library from gopkg.in/yaml.v2 to
sigs.k8s.io/yaml, a wrapper around the former. The k8s library provides
better functionality with regards to unmarshaling a YAML file into a
JSON-friendly data structure.

This commit also includes various cleanups related to the change:

  • convertToStringKeys has been removed
  • functions determineKind and determineAPIVersion have been replaced
    by the more generic getString
  • functions in, detectLineBreak and getString have been moved to
    kubeval/utils.go

Lastly, unit tests have been written for the new getString function

This updates the current YAML library from gopkg.in/yaml.v2 to
sigs.k8s.io/yaml, a wrapper around the former. The k8s library provides
better functionality with regards to unmarshaling a YAML file into a
JSON-friendly data structure.

This commit also includes various cleanups related to the change:
* `convertToStringKeys` has been removed
* functions `determineKind` and `determineAPIVersion` have been replaced
  by the more generic `getString`
* functions `in`, `detectLineBreak` and `getString` have been moved to
  kubeval/utils.go

Lastly, unit tests have been written for the new `getString` function
@garethr
Copy link
Collaborator

garethr commented Jul 27, 2019

Thanks. Looks good.

@garethr garethr merged commit 9c9c0a5 into instrumenta:master Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants