2
0
mirror of https://github.com/nofusscomputing/kubernetes.git synced 2025-08-02 04:22:42 +00:00
Files
kubernetes/manifests/cloudnativepg-operator/README.md

1.1 KiB

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.

  2. split the manifest

    From the apps dir manifests/<app name> run:

    
    docker run -ti \
      -e "KUBECTL_SLICE_INPUT_FILE=<Raw URL of manifest>" \
      -e "KUBECTL_SLICE_OUTPUT_DIR=base/" \
      -v manifests/cloudnativepg-operator:/workdir \
      --rm \
      nofusscomputing/kubernetes-manifest-tools:latest
    
    
  3. update the Base kustomization

    From the apps dir manifests/<app name> run:

    
    ansible-playbook ../../../../other/kubernetes-manifest-tools/collection/playbooks/update-kustomize.yaml \
      --extra-vars "namespace=operators" \
      --extra-vars "manifest_dir=${PWD}/base"