Skip to content

Commit d956464

Browse files
committed
Update docs
1 parent 8cc38ee commit d956464

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ There are a number of common helm or kubectl commands you can use to monitor the
7373
kubectl exec -it terraform-enterprise-5946d99fc-l22s9 -- cat /var/log/terraform-enterprise/atlas.log
7474
```
7575

76-
## Pre-upgrade Validation
77-
78-
Pre-upgrade check documentation has moved to:
79-
80-
- [docs/upgrades_and_rollback.md#pre-upgrade-validation](docs/upgrades_and_rollback.md#pre-upgrade-validation)
81-
8276
## Additional Documentation
8377

8478
For more information about Terraform Enterprise and the capabilities of this helm chart please see the following additional documentation:
@@ -88,4 +82,3 @@ For more information about Terraform Enterprise and the capabilities of this hel
8882
* [Examples of Common Implementations](docs/implementations.md#implementation-examples)
8983
* [Terraform Enterprise Common Kubernetes Configuration](docs/kubernetes_configuration.md#terraform-enterprise-common-kubernetes-configuration)
9084
* [Terraform Enterprise Upgrades and Rollback](docs/upgrades_and_rollback.md)
91-
* [Terraform Enterprise Pre-upgrade Validation](docs/upgrades_and_rollback.md#pre-upgrade-validation)

docs/upgrades_and_rollback.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,33 @@ env:
4646
4747
Run validation:
4848
49+
Use this command when you are not setting `preupgradeCheck.extraSecrets`:
50+
4951
```sh
5052
helm 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

6078
Check status and logs:
@@ -95,6 +113,8 @@ Follow the [Helm Upgrade](#helm-upgrade) instructions below after validation suc
95113

96114
Recommended for isolated testing and easy cleanup.
97115

116+
The command below creates a new namespace named `tfe-validation`.
117+
98118
```sh
99119
helm 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+
107136
Cleanup:
108137

109138
```sh

0 commit comments

Comments
 (0)