Merge pull request #315 from rieger-jared/bug/update-notification-api-in-docs

Update api versions in guides
pull/318/head
Stefan Prodan 4 years ago committed by GitHub
commit a7b41a4b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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

@ -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

@ -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

Loading…
Cancel
Save