Update CLI commands to Notification API v1beta2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
2
cmd/flux/testdata/export/alert.yaml
vendored
2
cmd/flux/testdata/export/alert.yaml
vendored
@@ -1,5 +1,5 @@
|
||||
---
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta2
|
||||
kind: Alert
|
||||
metadata:
|
||||
name: flux-system
|
||||
|
||||
6
cmd/flux/testdata/export/objects.yaml
vendored
6
cmd/flux/testdata/export/objects.yaml
vendored
@@ -4,7 +4,7 @@ kind: Namespace
|
||||
metadata:
|
||||
name: {{ .fluxns }}
|
||||
---
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta2
|
||||
kind: Provider
|
||||
metadata:
|
||||
name: slack
|
||||
@@ -14,7 +14,7 @@ spec:
|
||||
channel: 'A channel with spacess'
|
||||
address: https://hooks.slack.com/services/mock
|
||||
---
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta2
|
||||
kind: Alert
|
||||
metadata:
|
||||
name: flux-system
|
||||
@@ -97,7 +97,7 @@ spec:
|
||||
interval: 5m
|
||||
prune: true
|
||||
---
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta2
|
||||
kind: Receiver
|
||||
metadata:
|
||||
name: flux-system
|
||||
|
||||
3
cmd/flux/testdata/export/provider.yaml
vendored
3
cmd/flux/testdata/export/provider.yaml
vendored
@@ -1,5 +1,5 @@
|
||||
---
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta2
|
||||
kind: Provider
|
||||
metadata:
|
||||
name: slack
|
||||
@@ -7,5 +7,6 @@ metadata:
|
||||
spec:
|
||||
address: https://hooks.slack.com/services/mock
|
||||
channel: A channel with spacess
|
||||
interval: 10m0s
|
||||
type: slack
|
||||
|
||||
|
||||
3
cmd/flux/testdata/export/receiver.yaml
vendored
3
cmd/flux/testdata/export/receiver.yaml
vendored
@@ -1,5 +1,5 @@
|
||||
---
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta2
|
||||
kind: Receiver
|
||||
metadata:
|
||||
name: flux-system
|
||||
@@ -8,6 +8,7 @@ spec:
|
||||
events:
|
||||
- ping
|
||||
- push
|
||||
interval: 10m0s
|
||||
resources:
|
||||
- kind: GitRepository
|
||||
name: flux-system
|
||||
|
||||
Reference in New Issue
Block a user