constellation/cli/internal/helm
Otto Bittner c8c2953d7b cli: add status cmd
The new command allows checking the status of an upgrade
and which versions are installed.
Also remove the unused restclient.
And make GetConstellationVersion a function.
2023-04-03 12:03:41 +02:00
..
charts ci: add e2e-upgrade test 2023-03-23 14:57:38 +01:00
testdata attestation: add option for MAA fallback to verify azure's snp-sev id key digest (#1257) 2023-03-21 12:46:49 +01:00
backup_test.go go: remove unused parameters 2023-03-20 08:41:01 -04:00
backup.go cli: create backups for CRDs and their resources 2023-01-05 16:52:06 +01:00
BUILD.bazel internal: refactor oid package to variant package (#1538) 2023-03-29 09:30:13 +02:00
cilium.patch deploy cilium via helmchart (#321) 2022-08-12 10:20:19 +02:00
client_test.go cli: idkeycfg upgrade migration 2023-03-23 14:57:38 +01:00
client.go cli: add status cmd 2023-04-03 12:03:41 +02:00
generateCertManager.sh bazel: add go generate to //:generate target 2023-03-29 12:51:40 -04:00
generateCilium.sh bazel: add go generate to //:generate target 2023-03-29 12:51:40 -04:00
helm.go cli: add doc comments for helm 2023-03-03 15:02:22 +01:00
loader_test.go internal: refactor oid package to variant package (#1538) 2023-03-29 09:30:13 +02:00
loader.go cli: set cluster's initial measurements from user's config using Helm (#1540) 2023-03-29 11:16:56 +02:00
README.md Microservice upgrades (#729) 2022-12-19 16:52:15 +01:00
update-csi-charts.sh bazel: add go generate to //:generate target 2023-03-29 12:51:40 -04:00
values.go helm: add OpenStack charts 2023-03-21 10:51:09 +01:00

Chart upgrades

All services that are installed via helm-install are upgraded via helm-upgrade. Two aspects are not full covered by running helm-upgrade: CRDs and values. While helm-install can install CRDs if they are contained in a chart's crds folder, upgrade won't change any installed CRDs. Furthermore, new values introduced with a new version of a chart will not be installed into the cluster if the --reuse-values flag is set. Nevertheless, we have to rely on the values already present in the cluster because some of the values are set by the bootstrapper during installation. Because upgrades should be a CLI-only operation and we want to avoid the behaviour of --reuse-values, we fetch the cluster values and merge them with any new values.

Here is how we manage CRD upgrades for each chart.

Cilium

  • CRDs are updated by cilium-operator.

cert-manager

  • installCRDs flag is set during upgrade. This flag is managed by cert-manager. cert-manager is in charge of correctly upgrading the CRDs.
  • WARNING: upgrading cert-manager might break other installations of cert-manager in the cluster, if those other installation are not on the same version as the Constellation-manager installation. This is due to the cluster-wide CRDs.

Operators

  • Manually update CRDs before upgrading the chart. Update by running applying the CRDs found in the operators/crds/ folder.

Constellation-services

  • There currently are no CRDs in this chart.