1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Update api versions in guides

This commit is contained in:
Jared Rieger
2020-10-07 17:00:43 +02:00
parent 469de31218
commit bfd6d14bf3
4 changed files with 8 additions and 8 deletions

View File

@@ -225,7 +225,7 @@ the `gotk-system` to start receiving notifications about the Helm
release: release:
```yaml ```yaml
apiVersion: notification.toolkit.fluxcd.io/v1alpha1 apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Alert kind: Alert
metadata: metadata:
generation: 2 generation: 2
@@ -267,7 +267,7 @@ kubectl -n gotk-system create secret generic webhook-token \
When using [Harbor](https://goharbor.io/) as your Helm repository, you can define a receiver with: When using [Harbor](https://goharbor.io/) as your Helm repository, you can define a receiver with:
```yaml ```yaml
apiVersion: notification.toolkit.fluxcd.io/v1alpha1 apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Receiver kind: Receiver
metadata: metadata:
name: helm-podinfo name: helm-podinfo

View File

@@ -128,7 +128,7 @@ spec:
Kustomization manifest: Kustomization manifest:
```yaml ```yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1alpha1 apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: my-secrets name: my-secrets

View File

@@ -33,7 +33,7 @@ it can be a Slack, Microsoft Teams, Discord or Rocket webhook URL.
Create a notification provider for Slack by referencing the above secret: Create a notification provider for Slack by referencing the above secret:
```yaml ```yaml
apiVersion: notification.toolkit.fluxcd.io/v1alpha1 apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Provider kind: Provider
metadata: metadata:
name: slack name: slack
@@ -57,7 +57,7 @@ Elasticsearch, CloudWatch, Stackdriver, etc.
Create an alert definition for all repositories and kustomizations: Create an alert definition for all repositories and kustomizations:
```yaml ```yaml
apiVersion: notification.toolkit.fluxcd.io/v1alpha1 apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Alert kind: Alert
metadata: metadata:
name: on-call-webapp name: on-call-webapp
@@ -137,7 +137,7 @@ Creating a git provider is very similar to creating other types of providers.
The only caveat being that the provider address needs to point to the same The only caveat being that the provider address needs to point to the same
git repository as the Kustomization resource refers to. git repository as the Kustomization resource refers to.
```yaml ```yaml
apiVersion: notification.toolkit.fluxcd.io/v1alpha1 apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Provider kind: Provider
metadata: metadata:
name: podinfo name: podinfo
@@ -149,7 +149,7 @@ spec:
secretRef: secretRef:
name: github name: github
--- ---
apiVersion: notification.toolkit.fluxcd.io/v1alpha1 apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Alert kind: Alert
metadata: metadata:
name: podinfo name: podinfo

View File

@@ -89,7 +89,7 @@ kubectl -n gotk-system create secret generic webhook-token \
Create a receiver for GitHub and specify the `GitRepository` object: Create a receiver for GitHub and specify the `GitRepository` object:
```yaml ```yaml
apiVersion: notification.toolkit.fluxcd.io/v1alpha1 apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Receiver kind: Receiver
metadata: metadata:
name: webapp name: webapp