Skip to content

Commit 0f9f77c

Browse files
committed
remove enabled prometheus flag
1 parent ec11b1b commit 0f9f77c

3 files changed

+0
-11
lines changed

api/v1/atlasthirdpartyintegration_types.go

-4
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ type PrometheusIntegration struct {
161161
// +kubebuilder:validation:Enum:=file;http
162162
// +kubebuilder:validation:Required
163163
ServiceDiscovery string `json:"serviceDiscovery"`
164-
165-
// Enabled flags whether or not Prometheus integration is enabled
166-
// +kubebuilder:validation:Required
167-
Enabled bool `json:"enabled"`
168164
}
169165

170166
type SlackIntegration struct {

api/v1/atlasthirdpartyintegration_types_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ func TestIntegrationCELChecks(t *testing.T) {
8888
Prometheus: &PrometheusIntegration{
8989
PrometheusCredentials: "prometheus-credentials",
9090
ServiceDiscovery: "http",
91-
Enabled: false,
9291
},
9392
},
9493
},
@@ -138,7 +137,6 @@ func TestIntegrationCELChecks(t *testing.T) {
138137
Prometheus: &PrometheusIntegration{
139138
PrometheusCredentials: "prometheus-credentials",
140139
ServiceDiscovery: "http",
141-
Enabled: false,
142140
},
143141
},
144142
},

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

-5
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,6 @@ spec:
164164
description: Prometheus contains the config fields for Prometheus's
165165
Integration
166166
properties:
167-
enabled:
168-
description: Enabled flags whether or not Prometheus integration
169-
is enabled
170-
type: boolean
171167
prometheusCredentials:
172168
description: |-
173169
PrometheusCredentials is the name of a secret containing the Prometheus
@@ -180,7 +176,6 @@ spec:
180176
- http
181177
type: string
182178
required:
183-
- enabled
184179
- prometheusCredentials
185180
- serviceDiscovery
186181
type: object

0 commit comments

Comments
 (0)