Skip to content

Commit 4294ba5

Browse files
committed
docs(cloudnativepg_operator): add upgrade runbook
ref: #15 #13 infrastructure/argo#3
1 parent 7c68655 commit 4294ba5

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# CloudnativePG Operator Kustomize
2+
3+
4+
## Upgrading manifests
5+
6+
1. Fetch new release manifest
7+
8+
- Navigate to repository https://github.com/cloudnative-pg/cloudnative-pg
9+
10+
- Go To `releases` directory
11+
12+
- Change the branch to the desired tag _Tag sgould match the desired release_
13+
14+
- click on the file that matches the release version
15+
16+
- copy the permalink raw URL
17+
18+
Keep a copy of this url so it can be added to the commit message. Doing this will allow validity checking if required.
19+
20+
1. split the manifest
21+
22+
From the apps dir `manifests/<app name>` run:
23+
24+
``` bash
25+
26+
docker run -ti \
27+
-e "KUBECTL_SLICE_INPUT_FILE=<Raw URL of manifest>" \
28+
-e "KUBECTL_SLICE_OUTPUT_DIR=base/" \
29+
-v manifests/cloudnativepg-operator:/workdir \
30+
--rm \
31+
nofusscomputing/kubernetes-manifest-tools:latest
32+
33+
```
34+
35+
1. update the Base kustomization
36+
37+
From the apps dir `manifests/<app name>` run:
38+
39+
``` bash
40+
41+
ansible-playbook ../../../../other/kubernetes-manifest-tools/collection/playbooks/update-kustomize.yaml \
42+
--extra-vars "namespace=operators" \
43+
--extra-vars "manifest_dir=${PWD}/base"
44+
45+
```

0 commit comments

Comments
 (0)