-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
e2e: cleanup test/util/crd to decouple tests #77927
e2e: cleanup test/util/crd to decouple tests #77927
Conversation
sttts
commented
May 15, 2019
•
edited by liggitt
edited by liggitt
- removed duplication of data in TestCRD
- switch CRD creators to functional options pattern to make CRD spec mutable by tests before the CRD is instantiated.
/kind cleanup |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, sttts 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 |
6a0763e
to
3e1fccd
Compare
3e1fccd
to
4456746
Compare
Fixed gofmt, golint and two former GetMetaName calls. |
4456746
to
56fe7db
Compare
And json->yaml.Unmarshal for the specs (which were patched in before). |
/lgtm |
/retest |
/retest pull-kubernetes-e2e-gce-100-performance |
/test pull-kubernetes-e2e-gce-100-performance |
56fe7db
to
a90cab0
Compare
New changes are detected. LGTM label has been removed. |
/lgtm |
2 days in the merge queue |
crd, err := crd.CreateMultiVersionTestCRD(f, group, apiVersions, nil) | ||
if err != nil { | ||
return nil, fmt.Errorf("failed to create CRD: %v", err) | ||
if schema == nil { |
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.
this changed behavior... previously if nil was passed in, we did not set a validation schema on the CRD. the defaulting to type:object
was only done in the value passed to waitForDefinition