-
Notifications
You must be signed in to change notification settings - Fork 69
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-2.12] Add MCOA status for CRD dependencies #1608
[release-2.12] Add MCOA status for CRD dependencies #1608
Conversation
msg := fmt.Sprintf(tmpl, strings.Join(missingVersions, ", ")) | ||
|
||
return &mcoshared.Condition{ | ||
Type: reasonMCOADegraded, |
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 was where the problem was. I tried refactoring the way the status was being generated but it made the PR bigger than what's necessary for this. In the future if we want we'll refactor it
const ( | ||
OauthProxyImageStreamName = "oauth-proxy" | ||
OauthProxyImageStreamNamespace = "openshift" | ||
) | ||
|
||
const ( | ||
ClusterLogForwarderCRDName = "clusterlogforwarders.logging.openshift.io" |
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.
From my POV we can update these once stolostron/multicluster-observability-addon#63 lands, let me know otherwise
3cd9617
to
6408922
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.
/lgtm
6408922
to
5d25dbb
Compare
5d25dbb
to
f6c4ec1
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.
/lgtm
/retest |
Signed-off-by: Periklis Tsirakidis <periklis@redhat.com>
Signed-off-by: Periklis Tsirakidis <periklis@redhat.com>
Signed-off-by: Periklis Tsirakidis <periklis@redhat.com>
Signed-off-by: Joao Marcal <jmarcal@redhat.com>
f6c4ec1
to
4e8fd3c
Compare
Quality Gate passedIssues Measures |
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.
/lgtm
/refresh |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoaoBraveCoding, periklis, philipgough 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 |
Succeeds #1564
The following PR is an amendment/extention to #1470 to improve the user experience when a user decides to use the new capabilities spec and in turn MCOA. Currently the MCOA internal reconciliation loop depends on a set of CustomResourceDefinitions (CRD) owned by other operator dependecies (i.e. cluster-logging-operator, opentelemetrycollector-operator). The underlying implementation checks if the CRDs exist and actually serve the required CRD versions. If any is missing the MCO status shows the MCOADegradedCondition, e.g.:
cc @periklis