Skip to content

Commit

Permalink
docs: fix the operator version (#2167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Rumney authored May 20, 2022
1 parent 613b171 commit 35213a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/docs/kubernetes/operator/installation/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ helm install trivy-operator aqua/trivy-operator \
--namespace trivy-system \
--create-namespace \
--set="trivy.ignoreUnfixed=true" \
--version {{ var.chart_version }}
--version {{ var.operator_version }}
```

## Example - Download the chart

This will install the operator in the `trivy-system` namespace and configure it to scan all namespaces, except `kube-system` and `trivy-system`:

```bash
git clone --depth 1 --branch {{ git.tag }} https://github.com/aquasecurity/trivy-operator.git
git clone --depth 1 --branch {{ var.operator_version }} https://github.com/aquasecurity/trivy-operator.git
cd trivy-operator
helm install trivy-operator ./deploy/helm \
--namespace trivy-system \
Expand All @@ -39,7 +39,7 @@ Check that the `trivy-operator` Helm release is created in the `trivy-system` na
```console
$ helm list -n trivy-system
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
trivy-operator trivy-system 1 2021-01-27 20:09:53.158961 +0100 CET deployed trivy-operator-{{ var.chart_version }} {{ git.tag[1:] }}
trivy-operator trivy-system 1 2021-01-27 20:09:53.158961 +0100 CET deployed trivy-operator-{{ var.operator_version }} {{ var.operator_version[1:] }}
```

To confirm that the operator is running, check that the `trivy-operator` Deployment in the `trivy-system`
Expand Down Expand Up @@ -87,4 +87,4 @@ You have to manually delete custom resource definitions created by the `helm ins

[Helm]: https://helm.sh/
[charts]: https://helm.sh/docs/topics/charts/
[values]: https://raw.githubusercontent.com/aquasecurity/trivy-operator/{{ git.tag }}/deploy/helm/values.yaml
[values]: https://raw.githubusercontent.com/aquasecurity/trivy-operator/{{ var.operator_version }}/deploy/helm/values.yaml
4 changes: 2 additions & 2 deletions docs/docs/kubernetes/operator/installation/kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Kubernetes Yaml deployment files are available on GitHub in [https://github.com/
This will install the operator in the `trivy-system` namespace and configure it to scan all namespaces, except `kube-system` and `trivy-system`:

```bash
kubectl apply -f https://raw.githubusercontent.com/aquasecurity/trivy-operator/{{ git.tag }}/deploy/static/trivy-operator.yaml
kubectl apply -f https://raw.githubusercontent.com/aquasecurity/trivy-operator/{{ var.operator_version }}/deploy/static/trivy-operator.yaml
```

To confirm that the operator is running, check that the `trivy-operator` Deployment in the `trivy-system`
Expand Down Expand Up @@ -38,7 +38,7 @@ To learn more, please refer to the [Configuration](config) documentation.
You can uninstall the operator with the following command:

```
kubectl delete -f https://raw.githubusercontent.com/aquasecurity/trivy-operator/{{ git.tag }}/deploy/static/trivy-operator.yaml
kubectl delete -f https://raw.githubusercontent.com/aquasecurity/trivy-operator/{{ var.operator_version }}/deploy/static/trivy-operator.yaml
```

[Settings]: ./../../settings.md
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ extra:
provider: mike
var:
prev_git_tag: "v0.0.0"
chart_version: 0.0.3
operator_version: "v0.0.3"

plugins:
- search
Expand Down

0 comments on commit 35213a5

Please sign in to comment.