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

Make order of generated yaml from kubebuilder create config --crds deterministic #123

Merged
merged 1 commit into from
May 9, 2018

Conversation

pmorie
Copy link
Member

@pmorie pmorie commented May 3, 2018

... to facilitate adding test cases for validations etc in different CRDs.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 3, 2018
@pmorie pmorie requested a review from droot May 3, 2018 17:52
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 3, 2018
droot
droot previously approved these changes May 3, 2018
kind: ""
plural: ""
conditions: null
EOF
Copy link
Contributor

Choose a reason for hiding this comment

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

I took another look and realized that deterministic ordering can be unit tested in Go itself. This feels like an anti-pattern to have that functionality tested here test.sh ?

Copy link
Contributor

Choose a reason for hiding this comment

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

If it is possible to test in go, that is the direction I'd prefer. While necessary for the moment, this approach was a disaster in kubectl.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah - i’ll move the test to go

@droot droot dismissed their stale review May 3, 2018 21:45

Revisited and left a comment for discussion.

@pwittrock
Copy link
Contributor

@pmorie I am also fine with making that a TODO and not blocking this on that.

@pwittrock
Copy link
Contributor

Since the point of this PR is to increase test coverage, I am going to merge it. We can move logic from the test.sh to e2e tests in go independent of this PR.

@pwittrock pwittrock merged commit ac35586 into kubernetes-sigs:master May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants