Skip to content

Commit c0a5d0d

Browse files
Merge pull request #93245 from kylape/ROX-28896
ROX-28896: Add CRD upgrade instructions for roxctl upgrade
2 parents 413ca01 + e0290d6 commit c0a5d0d

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)