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
[release-4.6] Bug 1886651: Fix subscription name issue for OCS #6880
[release-4.6] Bug 1886651: Fix subscription name issue for OCS #6880
Conversation
Signed-off-by: Kanika Murarka <kmurarka@redhat.com>
@openshift-cherrypick-robot: An error was encountered searching for bug 1883847 on the Bugzilla server at https://bugzilla.redhat.com:
In response to this:
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. |
/retitle [release-4.6] Bug 1886651: Fix subscription name issue for OCS |
@openshift-cherrypick-robot: This pull request references Bugzilla bug 1886651, 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. 6 validation(s) were run on this bug
In response to this:
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. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bipuladh, openshift-cherrypick-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 |
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.
Sorry, I know this merged in master, but I had a couple comments looking at the PR.
); | ||
const csvList: any = await fetchK8s(ClusterServiceVersionModel, '', CEPH_STORAGE_NAMESPACE); | ||
const csvItems = csvList.items as ClusterServiceVersionKind[]; | ||
const ocsCSV = csvItems.find((obj) => getName(obj).includes(OCS_OPERATOR)); |
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.
Substring match seems imprecise. Do we not know the full name?
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.
@spadgett OCS CSV name changes every release, in the sense the version of OCS is added to the name, like ocs-operator.v4.6.0
for 4.6 etc, so we cannot check for full name here. Probably instead of substring, we can check with startsWith
function.
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.
I think that would be better 👍
const csvList: any = await fetchK8s(ClusterServiceVersionModel, '', CEPH_STORAGE_NAMESPACE); | ||
const csvItems = csvList.items as ClusterServiceVersionKind[]; |
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.
const csvList: any = await fetchK8s(ClusterServiceVersionModel, '', CEPH_STORAGE_NAMESPACE); | |
const csvItems = csvList.items as ClusterServiceVersionKind[]; | |
const csvList = await fetchK8s<ListKind<ClusterServiceVersionKind>>(ClusterServiceVersionModel, '', CEPH_STORAGE_NAMESPACE); | |
csvList.items.find(...); |
We can address the comments in 4.7 and leave the 4.6 PR as-is since they're not major. |
Thanks @spadgett, rasied the PR wrt to comments for 4.7. |
group-lead approved for merge to 4.6.0 |
@openshift-cherrypick-robot: All pull requests linked via external trackers have merged: Bugzilla bug 1886651 has been moved to the MODIFIED state. In response to this:
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. |
This is an automated cherry-pick of #6860
/assign bipuladh