You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/vendor/helm-v2-migrate.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,13 @@ To migrate existing installations from HelmChart v1 with `useHelmInstall: true`
30
30
31
31
### Migrate From HelmChart v1 with `useHelmInstall: false`
32
32
33
-
This section describes how to migrate existing HelmChart v1 installations with `useHelmInstall: false`. These migration steps ensure that KOTS does not uninstall any resources that were previously deployed without Helm, and that Helm takes ownership of these existing resources.
33
+
This section describes how to migrate existing HelmChart v1 installations with `useHelmInstall: false`.
34
+
35
+
:::note
36
+
When the `useHelmInstall` field is _not_ set in the HelmChart custom resource, `false` is the default value.
37
+
:::
38
+
39
+
These migration steps ensure that KOTS does not uninstall any resources that were previously deployed without Helm, and that Helm takes ownership of these existing resources.
34
40
35
41
To migrate existing installations from HelmChart v1 and `useHelmInstall: false` to HelmChart v2:
36
42
@@ -54,7 +60,7 @@ To migrate existing installations from HelmChart v1 and `useHelmInstall: false`
54
60
55
61
1. Create another new release:
56
62
57
-
1. For each Helm chart in the release, configure the corresponding HelmChart custom resource to update `apiVersion` to `kots.io/v1beta2`, rewrite images, inject image pull secrets, and add backup labels. See [Configuring the HelmChart Custom Resource v2](helm-native-v2-using).
63
+
1. For each Helm chart in the release, find the corresponding HelmChart custom resource and update `apiVersion` to `kots.io/v1beta2`. Then update it to rewrite images, inject image pull secrets, and add backup labels. See [Configuring the HelmChart Custom Resource v2](helm-native-v2-using).
58
64
59
65
1. In the HelmChart custom resource, under the `helmUpgradeFlags` field, add the `--take-ownership` flag:
60
66
@@ -89,7 +95,7 @@ To migrate existing installations from HelmChart v1 and `useHelmInstall: false`
89
95
90
96
1. Instruct customers to migrate by first upgrading to the release where the `kots.io.keep` annotation is applied to your resources, then upgrading to the release with HelmChart v2.
91
97
92
-
1. In subsequent releases, remove the `helmUpgradeFlags` field (including the `--take-ownership` flag) from the HelmChart custom resource. This flag is only required during one upgrade to allow Helm to take ownership of your application resources.
98
+
1. In subsequent releases, remove the `--take-ownership` flag from the `helmUpgradeFlags` field and remove the `kots.io/keep` annotation from resources in your Helm templates.
93
99
94
100
### Migrate From Standard Kubernetes Manifests
95
101
@@ -153,7 +159,7 @@ To migrate applications that were previously packaged as standard Kubernetes man
153
159
154
160
1. Instruct customers to migrate by first upgrading to the release containing the standard manifests, then upgrading to the release packaged with Helm.
155
161
156
-
1. In subsequent releases, remove the `helmUpgradeFlags` field (including the `--take-ownership` flag) from the HelmChart custom resource. This flag is only required during one upgrade to allow Helm to take ownership of your application resources.
162
+
1. In subsequent releases, remove the `--take-ownership` flag from the `helmUpgradeFlags` field and remove the `kots.io/keep` annotation from resources in your Helm templates.
157
163
158
164
## Support Customers on KOTS Versions Earlier Than v1.99.0 {#support-both-v1-v2}
0 commit comments