-
Notifications
You must be signed in to change notification settings - Fork 19
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
CMP-2525: Implement dynamic scan settings for ROSA #511
Conversation
@Vincent056: This pull request references CMP-2525 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Vincent056 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 |
} else { | ||
// check the value of the clusterClaim | ||
if clusterClaim.Spec.Value != "" { | ||
pflag = clusterClaim.Spec.Value |
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.
Is this used consistently across all managed offerings? Can we also rely on this for ARO?
if pflag == "" { | ||
clusterClaim := &clusterv1alpha1.ClusterClaim{} | ||
if err := kubeClient.RESTClient().Get().RequestURI("/apis/cluster.open-cluster-management.io/v1alpha1/clusterclaims/product.open-cluster-management.io").Do(ctx).Into(clusterClaim); err != nil { | ||
setupLog.Info("Couldn't get ClusterClaim. This is not fatal though.") |
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.
Since we're using ClusterClaim
as an internal implementation detail, we could say something like:
setupLog.Info("Unable to determine managed offering type.")
Then if readers see the error, but they're using self-managed, they don't really have a reason to be alarmed.
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.
agree, let me fix it
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.
Only a couple comments inline. This is looking good, and we just need to get some testing wired up.
Thanks, Vincent!
/hold for test |
@Vincent056 I am not sure if it is an env issue. The operator was installed correctly, and default ss only contains worker role. However, the pb was not created. Could you please help to double check? thanks.
|
Working to get #515 landed so you have something to test against. |
/test e2e-rosa |
/test e2e-rosa |
f1e71bb
to
32085ba
Compare
/test e2e-rosa |
1 similar comment
/test e2e-rosa |
I may have a fix for this in #518 - which includes a new platform type for ROSA, and ensure the rhcos4 and ocp4 bundles are supported for that platform type. |
…lations Made change to be able to detect what managed cluster we are on using ClusterClaim, added ROSA platform type, disable master role if detected running on ROSA
@Vincent056: The following test failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
close this in favor of #518 |
Made change to be able to detect what managed cluster we are on using
ClusterClaim
, through/apis/cluster.open-cluster-management.io/v1alpha1/clusterclaims/product.open-cluster-management.io
Added ROSA platform type, disable master role if detected running on ROSA