-
Notifications
You must be signed in to change notification settings - Fork 90
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
Don't deploy UI Plugin resources if the manifests are missing #1165
Conversation
Signed-off-by: Oren Cohen <ocohen@redhat.com>
Hi @orenc1. Thanks for your PR. I'm waiting for a nmstate member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
@orenc1: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
@@ -147,7 +147,8 @@ func (r *NMStateReconciler) applyManifests(instance *nmstatev1.NMState, ctx cont | |||
} | |||
|
|||
isOpenShift, err := cluster.IsOpenShift(r.APIClient) | |||
if err == nil && isOpenShift { | |||
_, errUIPluginPathExists := os.Stat(filepath.Join("openshift", "ui-plugin")) | |||
if err == nil && isOpenShift && errUIPluginPathExists == nil { |
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.
just a small question: should we notify users via log that ui-plugin is not installed ?
Example:
if "NMState version supports ui-plugin" && "messageNotDisplayedYet" && errUIPluginPathExists != nil {
r.Log.Info("NMState ui-plugin is not set, to enable this feature, please consult NMState documentation");
}
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.
@orenc1 BTW, Thanks for the patch !!
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 not sure, because if at this point the manifests of the ui plugin are missing from the operator container, the users can't do much in order to deploy the ui plugin at this point, since the operator is expecting the manifests to be included in the container.
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.
thanks! I will let others in the group review and approve :)
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qinqon 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 |
/retest |
/ok-to-test There is something bad at centos 9 stream |
The error doesn't seem related to the patch:
|
/retest-required |
There's a problem with the centos 9 repos. A workaround is proposed here #1168 so that will need to merge before this will pass. |
/retest The centos 9 stream RPM issue has being fixed upstream, but looks like we have e2e test issue at main |
/retest |
Is this a BUG FIX or a FEATURE ?:
/kind bug
What this PR does / why we need it:
If for whatever reason the UI manifests does not exist in the operator's filesystem, we don't want the operator to deploy UI-related resources, resulting in an error log.
Special notes for your reviewer:
Release note: