-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add reporting of operator health #100
Add reporting of operator health #100
Conversation
Update after adding github.com/openshift/api, github.com/openshift/client-go/ and github.com/openshift/library-go/
/hold |
/cc @awgreene @SamiSousa @galletti94 @anik120 @jeremylinlin |
@aravindhp: GitHub didn't allow me to request PR reviews from the following users: anik120, jeremylinlin. Note that only operator-framework members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
c55174a
to
374e96b
Compare
/lgtm |
/lgtm |
/approve |
/hold cancel |
/retest |
/test images |
/test e2e-aws-operator |
/test e2e-aws |
pkg/status/status.go
Outdated
// this API. | ||
_, err := client.ClusterOperators().Get(clusterOperatorName, v1.GetOptions{}) | ||
coAPINotPresent := false | ||
if meta.IsNoMatchError(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.
@kevinrizza @tkashem I discovered that the error returned when ClusterOperator
CRD is not present is a generic not found error. This won't help us on vanilla kube. So instead I am going to push a change where I look for the ClusterOperator
CRD itself. The downside is that I need to add the CRD scheme to the manager. Let me know what you think after I push.
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.
@kevinrizza @tkashem I have pushed that change. Please take a look.
374e96b
to
9f8f0f1
Compare
@aravindhp Are we saying that we always need to install the ClusterOperator even on Openshift install? I thought it was just needed for vanilla kube? Are other openshift components following this pattern? |
/lgtm |
/lgtm |
/approve cancel |
/retest |
0ae6b7a
to
0471e29
Compare
/retest |
/test e2e-aws |
ffe1ded
to
6bec0f3
Compare
/test e2e-aws |
@kevinrizza @tkashem I figured out that reason the e2e was failing was that the cluster role was not updated to read CRDs. I have fixed that issue and updated some logs. Please review. |
/lgtm |
/test e2e-aws |
1 similar comment
/test e2e-aws |
- Add the ClusterOperator CR to the manifests - Update the cluster roles - Add support for reporting the health of the operator through the ClusterOperator CR This addresses https://jira.coreos.com/browse/MKTPLC-222
6bec0f3
to
2904065
Compare
/lgtm |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aravindhp 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 |
This addresses Jira issue MKTPLC-222