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

Run ./hack/update-deps.sh --patch #15087

Merged
merged 1 commit into from
Nov 8, 2019

Conversation

k8s-ci-robot
Copy link
Contributor

Automatic go module update. Please review

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 4, 2019
@k8s-ci-robot k8s-ci-robot added the sig/testing Categorizes an issue or PR as relevant to SIG Testing. label Nov 4, 2019
github.com/bazelbuild/buildtools v0.0.0-20190917191645-69366ca98f89
github.com/beorn7/perks v1.0.1 // indirect
github.com/bwmarrin/snowflake v0.0.0
github.com/clarketm/json v1.13.0
github.com/clarketm/json v1.13.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we get rid of this dep @clarketm ?

Copy link
Contributor

@clarketm clarketm Nov 8, 2019

Choose a reason for hiding this comment

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

No, it is required by genyaml (we need it at least until I can create a custom encoder that can handle all this fancy logic 💃).

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@clarketm clarketm Nov 8, 2019

Choose a reason for hiding this comment

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

My take is that since GenYaml(...) takes an interface, it can handle any arbitrary type. IMO, it would be impractical to use genyaml if a user had to create a custom marshaller for every struct in the source file(s). It would complicate it and reduce its utility. I am not saying that this/my approach is the best, but it does make the tool much easier to use out-of-the-box.

func (cm *CommentMap) GenYaml(config interface{}) (string, error) {

Copy link
Contributor

Choose a reason for hiding this comment

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

So basically you're just reinventing http://sigs.k8s.io/yaml? Please get rid of this.

Copy link
Contributor

@clarketm clarketm Nov 8, 2019

Choose a reason for hiding this comment

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

This would not work using http://sigs.k8s.io/yaml because it it outdated and does not support the Node type which it critical to the comment-injection logic of genyaml.

xref: kubernetes-sigs/yaml#18
xref: kubernetes-sigs/yaml#26

Copy link
Contributor

@clarketm clarketm Nov 8, 2019

Choose a reason for hiding this comment

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

I am not opposed to switching to http://sigs.k8s.io/yaml in the future once these features are supported (assuming it exposes these built-in go-yaml/v3 types and continues to filter zero-values structs).

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 8, 2019
@k8s-ci-robot
Copy link
Contributor Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fejta, k8s-ci-robot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 8, 2019
@k8s-ci-robot k8s-ci-robot merged commit 7b736ad into kubernetes:master Nov 8, 2019
@k8s-ci-robot k8s-ci-robot added this to the v1.17 milestone Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. 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.

None yet

3 participants