Skip to content

Commit be03268

Browse files
committed
BZ2056425:Adds a note about disableCopiedCSVs toggle
1 parent 31bac1e commit be03268

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

modules/olm-operatorgroups-copied-csvs.adoc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,38 @@ OLM creates copies of all active member CSVs of an Operator group in each of the
1010
Copied CSVs have a status reason `Copied` and are updated to match the status of their source CSV. The `olm.targetNamespaces` annotation is stripped from copied CSVs before they are created on the cluster. Omitting the target namespace selection avoids the duplication of target namespaces between tenants.
1111

1212
Copied CSVs are deleted when their source CSV no longer exists or the Operator group that their source CSV belongs to no longer targets the namespace of the copied CSV.
13+
14+
[NOTE]
15+
====
16+
By default, the `disableCopiedCSVs` field is disabled. After enabling a `disableCopiedCSVs` field, the OLM deletes existing copied CSVs on a cluster. When a `disableCopiedCSVs` field is disabled, the OLM adds copied CSVs again.
17+
18+
* Disable the `disableCopiedCSVs` field:
19+
+
20+
[source,yaml]
21+
----
22+
$ cat << EOF | oc apply -f -
23+
apiVersion: operators.coreos.com/v1
24+
kind: OLMConfig
25+
metadata:
26+
name: cluster
27+
spec:
28+
features:
29+
disableCopiedCSVs: false
30+
EOF
31+
----
32+
33+
* Enable the `disableCopiedCSVs` field:
34+
+
35+
[source,yaml]
36+
----
37+
$ cat << EOF | oc apply -f -
38+
apiVersion: operators.coreos.com/v1
39+
kind: OLMConfig
40+
metadata:
41+
name: cluster
42+
spec:
43+
features:
44+
disableCopiedCSVs: true
45+
EOF
46+
----
47+
====

0 commit comments

Comments
 (0)