Skip to content

Commit 1998530

Browse files
Merge pull request #94628 from kcarmichael08/ROX-29590-annotations
[ROX-29590] annotations for Operator runtime defaults
2 parents 079ecdd + e5f2199 commit 1998530

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

cloud_service/installing_cloud_ocp/install-secured-cluster-cloud-ocp.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ You can install {product-title-managed-short} on your secured clusters by using
2020
[id="installing-sc-operator-cloud-ocp"]
2121
== Installing {product-title-short} on secured clusters by using the Operator
2222

23+
To install {product-title-short} by using the Operator, you first install the Operator and then use it to install {product-title-short} on the secured cluster.
24+
25+
include::modules/install-acs-operator-annotations.adoc[leveloffset=+2]
26+
2327
include::modules/install-secured-cluster-operator.adoc[leveloffset=+2]
2428

2529
[id="installing-sc-helm-cloud-ocp"]

installing/installing_ocp/install-central-ocp.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ You can install Central on your {ocp} or Kubernetes cluster by using one of the
2121
[id="install-central-using-operator"]
2222
== Install Central using the Operator
2323

24+
To install Central by using the Operator, you first install the Operator and then use it to install {product-title-short} on the cluster where you want Central to be installed.
25+
26+
include::modules/install-acs-operator-annotations.adoc[leveloffset=+2]
27+
2428
include::modules/install-acs-operator.adoc[leveloffset=+2]
2529

2630
include::modules/install-central-operator.adoc[leveloffset=+2]

installing/installing_ocp/install-secured-cluster-ocp.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ You can install {product-title-short} on your secured clusters by using one of t
1717
[id="installing-sc-operator"]
1818
== Installing {product-title-short} on secured clusters by using the Operator
1919

20+
To install {product-title-short} by using the Operator, you first install the Operator and then use it to install {product-title-short} on the secured cluster.
21+
22+
include::modules/install-acs-operator-annotations.adoc[leveloffset=+2]
23+
2024
include::modules/install-secured-cluster-operator.adoc[leveloffset=+2]
2125

2226
[id="installing-sc-helm"]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/install-ocp-operator.adoc
4+
:_mod-docs-content-type: CONCEPT
5+
[id="install-acs-operator-annotations_{context}"]
6+
= Operator annotations used during installation
7+
8+
[role="_abstract"]
9+
{product-title-short} uses annotations attached to the custom resource (CR) so that for installations performed by using the Operator, the default values for certain configuration items are decided at runtime by the Operator based on the current environment, allowing the previously configured value of an item to persist.
10+
11+
For some configuration items, using a static default value for the installation is not ideal. Beginning with {product-title-short} version 4.8, the Operator can add annotations that are attached to the CR that you apply to clusters. These annotations allow a default decision that the Operator previously made to persist and be reapplied in the future, even if the default behavior for a fresh installation has changed. In summary, {product-title-short} uses annotations to persist runtime defaults. This means that the default value for a certain configuration setting is decided by the Operator at runtime.
12+
13+
For example, in release 4.8 and later, if a value is not specified for enabling Scanner V4, the default behavior is to enable Scanner V4. However, if a value is configured in the CR, such as `disable`, then {product-title-short} uses that value. In the Scanner V4 example, Scanner V4 was disabled by default in version 4.7; when updating to version 4.8 by using the Operator, that disabled setting persists and Scanner V4 is disabled.
14+
15+
Annotations are in the form `feature-defaults.platform.stackrox.io/<identifier>`. For example, `feature-defaults.platform.stackrox.io/scannerV4` is the annotation that allows the Operator to keep the default Scanner V4 enablement toggle stable during updating to {product-title-short} version 4.8.
16+
17+
[IMPORTANT]
18+
====
19+
Do not change or delete these annotations.
20+
====

0 commit comments

Comments
 (0)