Skip to content

Commit

Permalink
docs: automate installation docs to point to tag (#3178)
Browse files Browse the repository at this point in the history
Signed-off-by: Sertac Ozercan <[email protected]>
  • Loading branch information
sozercan authored Dec 1, 2023
1 parent 792bbe4 commit 5729d7e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ release-manifest:
@sed -i "s/tag: $(VERSION)/tag: ${NEWVERSION}/" ./cmd/build/helmify/static/values.yaml
@sed -i 's/Current release version: `$(VERSION)`/Current release version: `'"${NEWVERSION}"'`/' ./cmd/build/helmify/static/README.md
@sed -i -e 's/^VERSION := $(VERSION)/VERSION := ${NEWVERSION}/' ./Makefile
@sed -i 's/https:\/\/raw\.githubusercontent\.com\/open-policy-agent\/gatekeeper\/master\/deploy\/gatekeeper\.yaml.*/https:\/\/raw\.githubusercontent\.com\/open-policy-agent\/gatekeeper\/${NEWVERSION}\/deploy\/gatekeeper\.yaml/' ./website/docs/install.md
export
$(MAKE) manifests

Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-v3.10.x/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For either installation method, make sure you have cluster admin permissions:
If you want to deploy a released version of Gatekeeper in your cluster with a prebuilt image, then you can run the following command:

```sh
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.10.0/deploy/gatekeeper.yaml
```

### Deploying a Release using development image
Expand Down Expand Up @@ -91,7 +91,7 @@ You can alter the variables in `charts/gatekeeper/values.yaml` to customize your
If you used a prebuilt image to deploy Gatekeeper, then you can delete all the Gatekeeper components with the following command:

```sh
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.10.0/deploy/gatekeeper.yaml
```

### Using make
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-v3.11.x/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For either installation method, make sure you have cluster admin permissions:
If you want to deploy a released version of Gatekeeper in your cluster with a prebuilt image, then you can run the following command:

```sh
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.11.1/deploy/gatekeeper.yaml
```

### Deploying a Release using development image
Expand Down Expand Up @@ -91,7 +91,7 @@ You can alter the variables in `charts/gatekeeper/values.yaml` to customize your
If you used a prebuilt image to deploy Gatekeeper, then you can delete all the Gatekeeper components with the following command:

```sh
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.11.1/deploy/gatekeeper.yaml
```

### Using make
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-v3.12.x/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For either installation method, make sure you have cluster admin permissions:
If you want to deploy a released version of Gatekeeper in your cluster with a prebuilt image, then you can run the following command:

```sh
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.12.0/deploy/gatekeeper.yaml
```

### Deploying a Release using development image
Expand Down Expand Up @@ -92,7 +92,7 @@ You can alter the variables in `charts/gatekeeper/values.yaml` to customize your
If you used a prebuilt image to deploy Gatekeeper, then you can delete all the Gatekeeper components with the following command:
```sh
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.12.0/deploy/gatekeeper.yaml
```
### Using make
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-v3.13.x/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For either installation method, make sure you have cluster admin permissions:
If you want to deploy a released version of Gatekeeper in your cluster with a prebuilt image, then you can run the following command:

```sh
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.13.4/deploy/gatekeeper.yaml
```

### Deploying a Release using development image
Expand Down Expand Up @@ -92,7 +92,7 @@ You can alter the variables in `charts/gatekeeper/values.yaml` to customize your
If you used a prebuilt image to deploy Gatekeeper, then you can delete all the Gatekeeper components with the following command:
```sh
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.13.4/deploy/gatekeeper.yaml
```
### Using make
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-v3.14.x/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For either installation method, make sure you have cluster admin permissions:
If you want to deploy a released version of Gatekeeper in your cluster with a prebuilt image, then you can run the following command:

```sh
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.14.0/deploy/gatekeeper.yaml
```

### Deploying a Release using development image
Expand Down Expand Up @@ -92,7 +92,7 @@ You can alter the variables in `charts/gatekeeper/values.yaml` to customize your
If you used a prebuilt image to deploy Gatekeeper, then you can delete all the Gatekeeper components with the following command:
```sh
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.14.0/deploy/gatekeeper.yaml
```
### Using make
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-v3.8.x/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For either installation method, make sure you have cluster admin permissions:
If you want to deploy a released version of Gatekeeper in your cluster with a prebuilt image, then you can run the following command:

```sh
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/release-3.8/deploy/gatekeeper.yaml
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.8.1/deploy/gatekeeper.yaml
```

### Deploying a Release using development image
Expand Down Expand Up @@ -91,7 +91,7 @@ You can alter the variables in `charts/gatekeeper/values.yaml` to customize your
If you used a prebuilt image to deploy Gatekeeper, then you can delete all the Gatekeeper components with the following command:

```sh
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.8.1/deploy/gatekeeper.yaml
```

### Using make
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-v3.9.x/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For either installation method, make sure you have cluster admin permissions:
If you want to deploy a released version of Gatekeeper in your cluster with a prebuilt image, then you can run the following command:

```sh
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.9.2/deploy/gatekeeper.yaml
```

### Deploying a Release using development image
Expand Down Expand Up @@ -91,7 +91,7 @@ You can alter the variables in `charts/gatekeeper/values.yaml` to customize your
If you used a prebuilt image to deploy Gatekeeper, then you can delete all the Gatekeeper components with the following command:

```sh
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
kubectl delete -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.9.2/deploy/gatekeeper.yaml
```

### Using make
Expand Down

0 comments on commit 5729d7e

Please sign in to comment.