Skip to content

Commit e0290d6

Browse files
committed
ROX-28896: Add CRD upgrade instructions for roxctl upgrade
There need to be additional instructions to upgrade the `SecurityPolicy` CRD when `roxtctl` was used to install ACS.
1 parent 5cfc57f commit e0290d6

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * upgrade/upgrade-roxctl.adoc
4+
:_mod-docs-content-type: PROCEDURE
5+
[id="upgrade-central-cluster-crds{context}"]
6+
= Upgrading the SecurityPolicy custom resource definition
7+
8+
[role="_abstract"]
9+
You can update the `SecurityPolicy` custom resource definition (CRD) to the latest version by generating the new CRD and applying it to the cluster.
10+
11+
.Procedure
12+
13+
. Use `roxctl` to generate a new set of resources by entering the following command:
14+
+
15+
[source,terminal,subs=attributes+]
16+
----
17+
$ roxctl central generate k8s pvc > bundle.zip
18+
----
19+
20+
. Extract the CRD from the archive by entering the following command:
21+
+
22+
[source,terminal,subs=attributes+]
23+
----
24+
$ unzip bundle.zip central/00-securitypolicy-crd.yaml
25+
----
26+
27+
. Apply the extracted CRD to your cluster by entering the following command:
28+
+
29+
[source,terminal,subs=attributes+]
30+
----
31+
$ oc apply -f central/00-securitypolicy-crd.yaml <1>
32+
----
33+
<1> If you use Kubernetes, enter `kubectl` instead of `oc`.

upgrading/upgrade-roxctl.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ include::modules/install-roxctl-cli-windows.adoc[leveloffset=+2]
4343
[id="upgrade-central-cluster"]
4444
== Upgrading the Central cluster
4545

46-
After you have created a backup of the Central database and generated the necessary resources by using the provisioning bundle, the next step is to upgrade the Central cluster. This process involves upgrading Central and Scanner.
46+
After you have created a backup of the Central database and generated the necessary resources by using the provisioning bundle, the next step is to upgrade the Central cluster. This process requires upgrading the `SecurityPolicy` custom resource definition (CRD), Central, and Scanner.
47+
48+
include::modules/upgrade-central-cluster-crds.adoc[leveloffset=+2]
4749

4850
include::modules/upgrade-central-cluster-central.adoc[leveloffset=+2]
4951

0 commit comments

Comments
 (0)