ROX-33119: Allow operator install method on non-OpenShift platforms by sachaudh · Pull Request #19446 · stackrox/stackrox

added 2 commits

March 16, 2026 13:54
ROX-33119: Remove platform gating that restricted the Operator
installation method to OpenShift only. Update instruction text in
both Init Bundles and CRS flows to be platform-neutral, with
qualified sub-bullets for OpenShift vs other platforms and kubectl
as an alternative to oc.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
…pace

Simplify onChangePlatform to only set the platform field instead of
resetting installation to Operator on every platform switch, which
silently overrode the user's selection. Also fix ClipboardCopy in
CRS operator instructions where line wrapping caused whitespace in
the copied command text.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Remove Record<string, string> annotations that widened as const
types, so InstallationKey resolves to 'Operator' | 'Helm' and
PlatformKey to 'OpenShift' | 'EKS' | 'AKS' | 'GKE'. Add oneOf
validators to the yup schema for compile-time and runtime safety.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Add missing article in heading ("using the Operator installation
method"), replace awkward colon with comma in OpenShift web console
bullet, remove redundant clause, and fix plural "secrets" to
singular "secret" in CRS apply step.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Rewrite "In the cluster that you are securing, you have installed
the RHACS Operator" to lead with the action for clarity.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Remove "by" from "by using", replace redundant "YAML file for the
init bundle/cluster registration secret" with "its YAML file",
shorten "Perform one of the following tasks to apply..." to "Apply
it using one of the following methods:", and simplify the final
install step.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>

@sachaudh sachaudh changed the title feat(clusters): allow operator install method on non-OpenShift platforms ROX-33119: Allow operator install method on non-OpenShift platforms

Mar 17, 2026

sachaudh

Standardize ClipboardCopy content to use HTML entities (&lt;/&gt;)
instead of JSX string expressions for angle brackets, matching the
pattern used in the InitBundles variant and other ClipboardCopy
usages across the codebase.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Derive Yup oneOf validation values from installationOptions and
platformOptions objects instead of hardcoding them. This prevents
silent divergence if a new option is added to the source-of-truth
objects but not to the schema.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Add explicit string type to the value parameter to avoid implicit
any, consistent with the type narrowing done elsewhere in this PR.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Remove trailing space before closing </p> tags in both
SecureClusterUsingOperator components.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
HTML entities cause prettier to treat the content as plain text and
wrap long lines, which introduces newlines in the copied command.
JSX string expressions are treated as atomic by prettier and
preserve the command as a single line.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Move CLI commands into named constants so ClipboardCopy children
use simple variable references, avoiding both HTML entity escaping
and JSX string expression wrapping for angle brackets.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>