Reverting hardcoded commands

This commit is contained in:
Jennifer Travinski
2022-03-25 14:46:37 -04:00
parent 59e123f9df
commit fd9fb0560d
@@ -87,7 +87,7 @@ In order to upgrade cert-manager, follow these instructions:
helm install \
cert-manager jetstack/cert-manager \
--namespace cert-manager \
--version vX.Y.Z
--version v0.12.0
```
1. [Restore back up resources](https://cert-manager.io/docs/tutorials/backup/#restoring-resources)
@@ -98,7 +98,7 @@ In order to upgrade cert-manager, follow these instructions:
{{% /accordion %}}
### Option B: Upgrade cert-manager in an Air-Gapped Environment
### Option B: Upgrade cert-manager in an Air Gap Environment
{{% accordion id="airgap" label="Click to expand" %}}
@@ -118,7 +118,7 @@ Before you can perform the upgrade, you must prepare your air gapped environment
1. Fetch the latest cert-manager chart available from the [Helm chart repository](https://hub.helm.sh/charts/jetstack/cert-manager).
```plain
helm fetch jetstack/cert-manager --version vX.Y.Z
helm fetch jetstack/cert-manager --version v0.12.0
```
1. Render the cert manager template with the options you would like to use to install the chart. Remember to set the `image.repository` option to pull the image from your private registry. This will create a `cert-manager` directory with the Kubernetes manifest files.
@@ -126,7 +126,7 @@ Before you can perform the upgrade, you must prepare your air gapped environment
The Helm 3 command is as follows:
```plain
helm template cert-manager ./cert-manager-vX.Y.Z.tgz --output-dir . \
helm template cert-manager ./cert-manager-v0.12.0.tgz --output-dir . \
--namespace cert-manager \
--set image.repository=<REGISTRY.YOURDOMAIN.COM:PORT>/quay.io/jetstack/cert-manager-controller
--set webhook.image.repository=<REGISTRY.YOURDOMAIN.COM:PORT>/quay.io/jetstack/cert-manager-webhook
@@ -136,7 +136,7 @@ Before you can perform the upgrade, you must prepare your air gapped environment
The Helm 2 command is as follows:
```plain
helm template ./cert-manager-vX.Y.Z.tgz --output-dir . \
helm template ./cert-manager-v0.12.0.tgz --output-dir . \
--name cert-manager --namespace cert-manager \
--set image.repository=<REGISTRY.YOURDOMAIN.COM:PORT>/quay.io/jetstack/cert-manager-controller
--set webhook.image.repository=<REGISTRY.YOURDOMAIN.COM:PORT>/quay.io/jetstack/cert-manager-webhook
@@ -146,7 +146,7 @@ Before you can perform the upgrade, you must prepare your air gapped environment
1. Download the required CRD file for cert-manager (old and new)
```plain
curl -L -o cert-manager/cert-manager-crd.yaml https://raw.githubusercontent.com/jetstack/cert-manager/release-X.Y/deploy/manifests/00-crds.yaml
curl -L -o cert-manager/cert-manager-crd.yaml https://raw.githubusercontent.com/jetstack/cert-manager/release-0.12/deploy/manifests/00-crds.yaml
curl -L -o cert-manager/cert-manager-crd-old.yaml https://raw.githubusercontent.com/jetstack/cert-manager/release-X.Y/deploy/manifests/00-crds.yaml
```
@@ -167,7 +167,7 @@ Before you can perform the upgrade, you must prepare your air gapped environment
```plain
kubectl -n cert-manager \
delete deployment,sa,clusterrole,clusterrolebinding \
-l 'app=cert-manager' -l 'chart=cert-manager-vX.Y.Z'
-l 'app=cert-manager' -l 'chart=cert-manager-v0.5.2'
```
Delete the CustomResourceDefinition using the link to the version vX.Y you installed