-
Notifications
You must be signed in to change notification settings - Fork 244
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
Removing remaining service catalog references #5033
Removing remaining service catalog references #5033
Conversation
1708a27
to
f56144f
Compare
9e0f119
to
c2a39bc
Compare
maven central issue https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_odo/5033/pull-ci-openshift-odo-main-psi-kubernetes-integration-e2e/1435498930216374272#1:build-log.txt%3A1009 |
8a73393
to
d993622
Compare
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 can see some functions/types on service/service.go that are unused :
- CreateOperatorService
- DeleteServiceAndUnlinkComponents
- GetGVKRFromCR
- InstanceCreateParameterSchema
There are also these files:
- pkg/kclient/serviceCatalog.go
- pkg/kclient/serviceCatalog_test.go
pkg/service/types.go
Outdated
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []Service `json:"items"` | ||
// ServiceClass holds the information regarding a service catalog service class |
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 this comes from an old version. I cannot see how it is used
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.
Do we want to remove them? they are operator related correct
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.
And yea il look at the files
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'm talking about ServiceClass
. It is not used anywhere on the code
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.
About the files I found there are functions that are not specific to service catalog
. I will see what I can do
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 was referring to the functions you listed, ServiceClass yea, it needs to go
d993622
to
8b0c4db
Compare
// Kubernetes or OpenShift 4.x cluster. It doesn't occur when there are | ||
// no operators installed. | ||
noCsvs = true | ||
return fmt.Errorf("unable to list services because Operator Hub is enabled in your cluster: %v", err) |
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.
Operator Hub is not enabled
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.
you mean the error message?
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.
ah
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.
done
retrying to be safe /test psi-kubernetes-integration-e2e |
747ce3c
to
85b972f
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feloy 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 |
The output of
I think the |
Removing |
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
85b972f
to
e4edb0d
Compare
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
/lgtm Thanks @mohammedzee1000 for this cleanup |
What type of PR is this?
/kind cleanup
What does this PR do / why we need it:
see topic
Which issue(s) this PR fixes:
Fixes #4978
Fixes #4011
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer:
Operator hub service should not be broken
It should no longer be possible to anything with service catalog services