Skip to content

Instantly share code, notes, and snippets.

@vxav
Last active December 4, 2024 12:24
Show Gist options
  • Select an option

  • Save vxav/e30d8781e411892966f503e4491f58e4 to your computer and use it in GitHub Desktop.

Select an option

Save vxav/e30d8781e411892966f503e4491f58e4 to your computer and use it in GitHub Desktop.
Upgrade Gitops WCs to v27

Step 1

  1. In <wc>/mapi/clusters/kustomization.yaml:
resources:
  - ../../../../../../../../bases/cluster
  - ../../../../../../../../bases/apps/default_step1
  1. In staging.yaml > Update default_apps_release to 0.11.0.

This will annotate the apps with app-operator.giantswarm.io/paused: true.

Step 2

  1. In <wc>/mapi/clusters/kustomization.yaml:
resources:
  - ../../../../../../../../bases/cluster
  - ../../../../../../../../bases/apps/default_step2

This will the delete default-apps-cloud-director App CR.

Step 3

  1. In <wc>/mapi/clusters/kustomization.yaml (remove line *bases/apps/default*):
resources:
  - ../../../../../../../../bases/cluster_step3
  1. In <wc>/mapi/clusters/cluster-extraconfig.yaml:

    • Remove internal.
    • [Tamarin] Remove .global.metadata.name (substituted in the bases).
    • [Leopard] Remove ...network.loadBalancer and ...network.loadBalancer.hostEntries
  2. In <wc>.yaml in the substitute section:

    • Set cluster_release: 27.0.0
    • Remove default_apps_release

This will upgrade the cluster chart to releases and deploy default apps as part of the cluster chart.

Step 4

Manual fixes: https://github.com/giantswarm/cluster-cloud-director/blob/main/CHANGELOG.md#manual-fixes

Final cleanup after all WCs are updated

  • Delete ../../../../../../../../bases/apps/default*
  • Delete bases/cluster
  • Rename bases/cluster_step3 to bases/cluster
  • Fix the WC kustomizations
  1. In <wc>/mapi/clusters/kustomization.yaml (remove _step3 in resource):
resources:
  - ../../../../../../../../bases/cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment