Skip to content

Commit 4c63796

Browse files
authored
Merge pull request #59 from fluxcd/docs-add-ns
Add namespace to API docs examples
2 parents 4d51e57 + 286ee63 commit 4c63796

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

docs/spec/v1beta1/alert.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
5555
kind: Alert
5656
metadata:
5757
name: webapp
58+
namespace: default
5859
spec:
5960
providerRef:
6061
name: on-call-slack
@@ -79,6 +80,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
7980
kind: Alert
8081
metadata:
8182
name: all-kustomizations
83+
namespace: default
8284
spec:
8385
providerRef:
8486
name: dev-msteams

docs/spec/v1beta1/event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ const (
5353
)
5454
```
5555

56-
Controller implementations can use the [fluxcd/pkg/recorder](https://github.com/fluxcd/pkg/tree/master/recorder)
56+
Controller implementations can use the [fluxcd/pkg/runtime/events](https://github.com/fluxcd/pkg/tree/main/runtime/events)
5757
package to push events to notification-controller API.

docs/spec/v1beta1/provider.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
7373
kind: Provider
7474
metadata:
7575
name: slack
76+
namespace: default
7677
spec:
7778
type: slack
7879
channel: general
@@ -108,6 +109,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
108109
kind: Provider
109110
metadata:
110111
name: podinfo
112+
namespace: default
111113
spec:
112114
# provider type can be github or gitlab
113115
type: github

docs/spec/v1beta1/receiver.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1alpha1
7676
kind: Receiver
7777
metadata:
7878
name: github-receiver
79+
namespace: default
7980
spec:
8081
type: github
8182
events:
@@ -100,6 +101,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1alpha1
100101
kind: Receiver
101102
metadata:
102103
name: gitlab-receiver
104+
namespace: default
103105
spec:
104106
type: gitlab
105107
events:
@@ -124,6 +126,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1alpha1
124126
kind: Receiver
125127
metadata:
126128
name: bitbucket-receiver
129+
namespace: default
127130
spec:
128131
type: bitbucket
129132
events:
@@ -145,6 +148,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1alpha1
145148
kind: Receiver
146149
metadata:
147150
name: harbor-receiver
151+
namespace: default
148152
spec:
149153
type: harbor
150154
secretRef:
@@ -164,6 +168,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1alpha1
164168
kind: Receiver
165169
metadata:
166170
name: generic-receiver
171+
namespace: default
167172
spec:
168173
type: generic
169174
secretRef:

0 commit comments

Comments
 (0)