-
Notifications
You must be signed in to change notification settings - Fork 191
Set Defaults functionality #1654
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
Conversation
|
/azp run e2e |
|
Azure Pipelines successfully started running 1 pipeline(s). |
pkg/api/v20210901preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
pkg/cluster/defaults_test.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt.Errorf -> cmp.Diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ // can't use cmp due to cycle imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should work if you import from github.com/google/go-cmp/cmp directly instead of using our wrapper.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I want to do this. This is bigger evil in my book :)
pkg/api/v20210901preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
pkg/cluster/defaults_test.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should work if you import from github.com/google/go-cmp/cmp directly instead of using our wrapper.
m1kola
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just few nits. Looks good otherwise.
930f601 to
c1ff486
Compare
Which issue this PR addresses:
Fixes our ability to serve old cluster using new api
Must merge after #1653
What this PR does / why we need it:
Currently if have a cluster created with old api and we will be doing operations on it using new API this will happen:
""in the documentWith this we making sure that:
adminPutOrPatchcluster document defaults values.Test plan for issue:
Unit tests
Is there any documentation that needs to be updated for this PR?
No