4646
4747Run validation:
4848
49+ Use this command when you are not setting ` preupgradeCheck.extraSecrets`:
50+
4951` ` ` sh
5052helm template <RELEASE> hashicorp/terraform-enterprise \
53+ -n <NAMESPACE> \
5154 --version <NEW_VERSION> \
52- -f override.yaml \
53- --set preupgradeCheck.enabled=true \
54- --set preupgradeCheck.tfeNamespace=true \
55- --show-only templates/preupgrade-check-job.yaml \
56- --show-only templates/preupgrade-check-secret.yaml \
57- | kubectl apply -n <NAMESPACE> -f -
55+ -f override.yaml \
56+ --set preupgradeCheck.enabled=true \
57+ --set preupgradeCheck.tfeNamespace=true \
58+ --show-only templates/preupgrade-check-job.yaml \
59+ | kubectl apply -n <NAMESPACE> -f -
60+ ` ` `
61+
62+ If you are setting `preupgradeCheck.extraSecrets`, include the secret template as well :
63+
64+ Use `preupgradeCheck.extraSecrets` when the target version needs sensitive values that are new, renamed, or different from what currently exists in your in-cluster Secrets.
65+
66+ ` ` ` sh
67+ helm template <RELEASE> hashicorp/terraform-enterprise \
68+ -n <NAMESPACE> \
69+ --version <NEW_VERSION> \
70+ -f override.yaml \
71+ --set preupgradeCheck.enabled=true \
72+ --set preupgradeCheck.tfeNamespace=true \
73+ --show-only templates/preupgrade-check-job.yaml \
74+ --show-only templates/preupgrade-check-secret.yaml \
75+ | kubectl apply -n <NAMESPACE> -f -
5876` ` `
5977
6078Check status and logs :
@@ -95,6 +113,8 @@ Follow the [Helm Upgrade](#helm-upgrade) instructions below after validation suc
95113
96114Recommended for isolated testing and easy cleanup.
97115
116+ The command below creates a new namespace named `tfe-validation`.
117+
98118` ` ` sh
99119helm install tfe-validation hashicorp/terraform-enterprise \
100120 -n tfe-validation --create-namespace \
@@ -104,6 +124,15 @@ helm install tfe-validation hashicorp/terraform-enterprise \
104124 --set preupgradeCheck.tfeNamespace=false
105125` ` `
106126
127+ Check status and logs before cleanup :
128+
129+ ` ` ` sh
130+ kubectl wait --for=condition=complete \
131+ job/terraform-enterprise-preupgrade-check \
132+ -n tfe-validation --timeout=300s
133+ kubectl logs -l app=terraform-enterprise-preupgrade-check -n tfe-validation
134+ ` ` `
135+
107136Cleanup :
108137
109138` ` ` sh
0 commit comments