Skip to content

Commit e20e7ed

Browse files
committed
Fix examples and YAML field names
1 parent 493930b commit e20e7ed

File tree

2 files changed

+44
-39
lines changed

2 files changed

+44
-39
lines changed

config/crd/bases/atlas.mongodb.com_atlasthirdpartyintegrations.yaml

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ spec:
9999
description: MicrosoftTeams contains the config fields for Microsoft
100100
Teams's Integration
101101
properties:
102-
apiKeySecret:
102+
urlSecret:
103103
description: URLSecret is the name of a secret containing the
104104
microsoft teams secret URL
105105
type: string
106106
required:
107-
- apiKeySecret
107+
- urlSecret
108108
type: object
109109
newRelic:
110110
description: NewRelic contains the config fields for New Relic's Integration
@@ -164,43 +164,44 @@ spec:
164164
description: Prometheus contains the config fields for Prometheus's
165165
Integration
166166
properties:
167-
region:
167+
enabled:
168+
description: Enabled flags whether or not Prometheus integration
169+
is enabled
170+
type: boolean
171+
prometheusCredentials:
172+
description: |-
173+
PrometheusCredentials is the name of a secret containing the Prometheus
174+
username & password
175+
type: string
176+
serviceDiscovery:
168177
description: ServiceDiscovery to be used by Prometheus
169178
enum:
170179
- file
171180
- http
172181
type: string
173-
sendCollectionLatencyMetrics:
174-
description: Enabled flags whether or not Prometheus integration
175-
is enabled
176-
type: boolean
177-
usernameSecret:
178-
description: UsernameSecret is the name of a secret containing
179-
the Prometehus username
180-
type: string
181182
required:
182-
- region
183-
- sendCollectionLatencyMetrics
184-
- usernameSecret
183+
- enabled
184+
- prometheusCredentials
185+
- serviceDiscovery
185186
type: object
186187
slack:
187188
description: Slack contains the config fields for Slack's Integration
188189
properties:
190+
apiTokenSecret:
191+
description: APITokenSecret is the name of a secret containing
192+
the Slack API token
193+
type: string
189194
channelName:
190195
description: ChannelName to be used by Prometheus
191196
type: string
192197
teamName:
193198
description: TeamName flags whether or not Prometheus integration
194199
is enabled
195200
type: string
196-
usernameSecret:
197-
description: APITokenSecret is the name of a secret containing
198-
the Slack API token
199-
type: string
200201
required:
202+
- apiTokenSecret
201203
- channelName
202204
- teamName
203-
- usernameSecret
204205
type: object
205206
type:
206207
description: Type of the integration
@@ -219,22 +220,26 @@ spec:
219220
description: VictorOps contains the config fields for VictorOps's
220221
Integration
221222
properties:
222-
keySecret:
223-
description: KeysSecret is the name of a secret containing Victor
224-
Ops API and routing keys
223+
apiKeySecret:
224+
description: APIKeySecret is the name of a secret containing Victor
225+
Ops API key
226+
type: string
227+
routingKey:
228+
description: RoutingKey is VictorOps routing key
225229
type: string
226230
required:
227-
- keySecret
231+
- apiKeySecret
232+
- routingKey
228233
type: object
229234
webhook:
230235
description: Webhook contains the config fields for Webhook's Integration
231236
properties:
232-
keySecret:
237+
urlSecret:
233238
description: URLSecret is the name of a secret containing Webhook
234239
URL and secret
235240
type: string
236241
required:
237-
- keySecret
242+
- urlSecret
238243
type: object
239244
required:
240245
- type

config/samples/atlas_v1_atlasintegration.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ spec:
1010
name: my-atlas-project
1111
type: DATADOG
1212
datadog:
13-
apiKeySecret: "datadog-apikey-secret-ref"
14-
region: "datadog-region"
13+
apiKeySecret: "secret-ref"
14+
region: "string"
1515
---
1616
apiVersion: atlas.mongodb.com/v1
1717
kind: AtlasIntegration
@@ -26,7 +26,7 @@ spec:
2626
connectionSecret: "conn-secret-ref"
2727
type: MICROSOFT_TEAMS
2828
microsoftTeams:
29-
urlSecret: "ms-url-secret-ref"
29+
urlSecret: "secret-ref"
3030
---
3131
apiVersion: atlas.mongodb.com/v1
3232
kind: AtlasIntegration
@@ -40,7 +40,7 @@ spec:
4040
name: my-atlas-project
4141
type: NEW_RELIC
4242
newRelic:
43-
credentialsSecret: "ms-url-secret-ref"
43+
credentialsSecret: "secret-ref"
4444
---
4545
apiVersion: atlas.mongodb.com/v1
4646
kind: AtlasIntegration
@@ -54,8 +54,8 @@ spec:
5454
name: my-atlas-project
5555
type: OPS_GENIE
5656
opsGenie:
57-
apiKeySecret: "ops-genie-apikey-secret-ref"
58-
region: "ops-genie-region"
57+
apiKeySecret: "secret-ref"
58+
region: "string"
5959
---
6060
apiVersion: atlas.mongodb.com/v1
6161
kind: AtlasIntegration
@@ -69,8 +69,8 @@ spec:
6969
name: my-atlas-project
7070
type: PAGER_DUTY
7171
pagerDuty:
72-
serviceKeySecret: "pagerduty-service-key-secret-ref"
73-
region: "pagerduty-region"
72+
serviceKeySecret: "secret-ref"
73+
region: "string"
7474
---
7575
apiVersion: atlas.mongodb.com/v1
7676
kind: AtlasIntegration
@@ -84,8 +84,8 @@ spec:
8484
name: my-atlas-project
8585
type: PROMETHEUS
8686
prometheus:
87-
prometheusCredentials: "prometheus-credentials-ref"
88-
serviceDiscovery: "serice-discovery"
87+
prometheusCredentials: "secret-ref"
88+
serviceDiscovery: "string"
8989
enabled: true
9090
---
9191
apiVersion: atlas.mongodb.com/v1
@@ -100,7 +100,7 @@ spec:
100100
name: my-atlas-project
101101
type: SLACK
102102
slack:
103-
apiTokenSecret: "slack-apitoken-secret-ref"
103+
apiTokenSecret: "secret-ref"
104104
channelName: "channel-name"
105105
teamName: "team-name"
106106
---
@@ -116,8 +116,8 @@ spec:
116116
name: my-atlas-project
117117
type: VICTOR_OPS
118118
victorOps:
119-
routingKey: "victorops-routingkey"
120-
apiKeySecret: "victorops-apikey-secret-ref"
119+
routingKey: "string"
120+
apiKeySecret: "secret-ref"
121121
---
122122
apiVersion: atlas.mongodb.com/v1
123123
kind: AtlasIntegration
@@ -131,4 +131,4 @@ spec:
131131
name: my-atlas-project
132132
type: WEBHOOK
133133
webhook:
134-
urlSecret: "webhook-urlsecret-ref"
134+
urlSecret: "secret-ref"

0 commit comments

Comments
 (0)