From 4294ba57671f08e1b56819b34c2f7cc39c1441cd Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 16 Jul 2025 00:44:59 +0930 Subject: [PATCH] docs(cloudnativepg_operator): add upgrade runbook ref: #15 #13 infrastructure/argo#3 --- manifests/cloudnativepg-operator/README.md | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 manifests/cloudnativepg-operator/README.md diff --git a/manifests/cloudnativepg-operator/README.md b/manifests/cloudnativepg-operator/README.md new file mode 100644 index 0000000..6865e4a --- /dev/null +++ b/manifests/cloudnativepg-operator/README.md @@ -0,0 +1,45 @@ +# CloudnativePG Operator Kustomize + + +## Upgrading manifests + +1. Fetch new release manifest + + - Navigate to repository https://github.com/cloudnative-pg/cloudnative-pg + + - Go To `releases` directory + + - Change the branch to the desired tag _Tag sgould match the desired release_ + + - click on the file that matches the release version + + - copy the permalink raw URL + + Keep a copy of this url so it can be added to the commit message. Doing this will allow validity checking if required. + +1. split the manifest + + From the apps dir `manifests/` run: + + ``` bash + + docker run -ti \ + -e "KUBECTL_SLICE_INPUT_FILE=" \ + -e "KUBECTL_SLICE_OUTPUT_DIR=base/" \ + -v manifests/cloudnativepg-operator:/workdir \ + --rm \ + nofusscomputing/kubernetes-manifest-tools:latest + + ``` + +1. update the Base kustomization + + From the apps dir `manifests/` run: + + ``` bash + + ansible-playbook ../../../../other/kubernetes-manifest-tools/collection/playbooks/update-kustomize.yaml \ + --extra-vars "namespace=operators" \ + --extra-vars "manifest_dir=${PWD}/base" + + ```