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

Bug 1873101: Gather VolumeSnapshot CRD #166

Merged
merged 2 commits into from
Sep 15, 2020

Conversation

natiiix
Copy link
Contributor

@natiiix natiiix commented Aug 21, 2020

Jira: CCXDEV-2393

Perhaps the vendoring of K8s API Extensions module commit will go into a separate PR, but I included it for now for the sake of completeness. That does not seem to be possible since all the tests fail without the vendoring.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 21, 2020
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 21, 2020
@natiiix
Copy link
Contributor Author

natiiix commented Aug 21, 2020

/retest

3 similar comments
@natiiix
Copy link
Contributor Author

natiiix commented Aug 24, 2020

/retest

@natiiix
Copy link
Contributor Author

natiiix commented Aug 25, 2020

/retest

@natiiix
Copy link
Contributor Author

natiiix commented Aug 25, 2020

/retest

@natiiix
Copy link
Contributor Author

natiiix commented Aug 26, 2020

Okay, it won't work without including the vendoring of the K8s API extensions module.

@natiiix
Copy link
Contributor Author

natiiix commented Aug 27, 2020

/retest

@natiiix
Copy link
Contributor Author

natiiix commented Aug 27, 2020

/retitle Bug 1873101: Gather VolumeSnapshot CRD

@openshift-ci-robot openshift-ci-robot changed the title WIP: Gather VolumeSnapshot CRD Bug 1873101: Gather VolumeSnapshot CRD Aug 27, 2020
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Aug 27, 2020
@openshift-ci-robot
Copy link
Contributor

@natiiix: This pull request references Bugzilla bug 1873101, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1873101: Gather VolumeSnapshot CRD

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot
Copy link
Contributor

@natiiix: This pull request references Bugzilla bug 1873101, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1873101: Gather VolumeSnapshot CRD

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@natiiix
Copy link
Contributor Author

natiiix commented Aug 27, 2020

/retest

1 similar comment
@natiiix
Copy link
Contributor Author

natiiix commented Aug 27, 2020

/retest

@natiiix
Copy link
Contributor Author

natiiix commented Aug 28, 2020

/test e2e-aws

@natiiix
Copy link
Contributor Author

natiiix commented Aug 28, 2020

/retest

1 similar comment
@natiiix
Copy link
Contributor Author

natiiix commented Aug 31, 2020

/retest

// Location in archive: config/crd/
func GatherCRD(i *Gatherer) func() ([]record.Record, []error) {
return func() ([]record.Record, []error) {
crds, err := i.crdClient.CustomResourceDefinitions().List(metav1.ListOptions{})
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be possible to instead of getting whole List, just get concrete CRD by Name ? It could be a bit more efficient I think.
Maybe something like:

crds := []string{"one","two"}
  for _, c := range crds {
    i.crdClient.CustomResourceDefinitions().Get(c,metav1.ListOptions{})
//... append
  }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, thanks for pointing this out, I totally didn't realize we could do this.

@martinkunc
Copy link
Contributor

/lgtm

Thank you, very nice :)

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 15, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: martinkunc, natiiix

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

@openshift-merge-robot openshift-merge-robot merged commit e05d222 into openshift:master Sep 15, 2020
@openshift-ci-robot
Copy link
Contributor

@natiiix: All pull requests linked via external trackers have merged:

Bugzilla bug 1873101 has been moved to the MODIFIED state.

In response to this:

Bug 1873101: Gather VolumeSnapshot CRD

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@martinkunc
Copy link
Contributor

@natiiix It looks the CRDs for volume snapshots are missing on 4.3 we would need to skip missing CRD gracefully and continue collection.

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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants