Skip to content
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

[EV-5299] Disable Policy Recommendation for Windows OS #3568

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,17 @@ func (r *ReconcilePolicyRecommendation) Reconcile(ctx context.Context, request r
return reconcile.Result{RequeueAfter: utils.StandardRetry}, nil
}

// Policy Recommendation is not supported in combination with Windows nodes.
hasWindowsNodes, err := common.HasWindowsNodes(r.client)
if err != nil {
r.status.SetDegraded(operatorv1.ResourceReadError, "Unable to determine if there are Windows nodes", err, logc)
return reconcile.Result{}, err
}
if hasWindowsNodes {
r.status.SetDegraded(operatorv1.ResourceValidationError, "Policy Recommendation is not supported in combination with Windows nodes", err, logc)
return reconcile.Result{}, err
}

license, err := utils.FetchLicenseKey(ctx, r.client)
if err != nil {
if errors.IsNotFound(err) {
Expand Down