@@ -27,8 +27,6 @@ import (
27
27
"github.com/banzaicloud/pipeline/internal/integratedservices/operator"
28
28
"github.com/banzaicloud/pipeline/internal/integratedservices/services/dns"
29
29
"github.com/banzaicloud/pipeline/internal/integratedservices/services/ingress"
30
- "github.com/banzaicloud/pipeline/internal/integratedservices/services/logging"
31
- "github.com/banzaicloud/pipeline/internal/integratedservices/services/monitoring"
32
30
"github.com/banzaicloud/pipeline/internal/integratedservices/services/securityscan"
33
31
"github.com/banzaicloud/pipeline/internal/integratedservices/services/vault"
34
32
"github.com/banzaicloud/pipeline/internal/platform/cadence"
@@ -206,10 +204,6 @@ type ClusterConfig struct {
206
204
// Initial manifest
207
205
Manifest string
208
206
209
- Monitoring ClusterMonitoringConfig
210
-
211
- Logging ClusterLoggingConfig
212
-
213
207
// Namespace to install Pipeline components to
214
208
Namespace string
215
209
@@ -233,8 +227,6 @@ func (c ClusterConfig) Validate() error {
233
227
234
228
errs = errors .Append (errs , c .Labels .Validate ())
235
229
236
- errs = errors .Append (errs , c .Logging .Validate ())
237
-
238
230
if c .Manifest != "" {
239
231
file , err := os .OpenFile (c .Manifest , os .O_RDONLY , 0666 )
240
232
_ = file .Close ()
@@ -243,8 +235,6 @@ func (c ClusterConfig) Validate() error {
243
235
}
244
236
}
245
237
246
- errs = errors .Append (errs , c .Monitoring .Validate ())
247
-
248
238
if c .Namespace == "" {
249
239
errs = errors .Append (errs , errors .New ("cluster namespace is required" ))
250
240
}
@@ -278,14 +268,6 @@ func (c *ClusterConfig) Process() error {
278
268
c .Labels .Namespace = c .Namespace
279
269
}
280
270
281
- if c .Logging .Namespace == "" {
282
- c .Logging .Namespace = c .Namespace
283
- }
284
-
285
- if c .Monitoring .Namespace == "" {
286
- c .Monitoring .Namespace = c .Namespace
287
- }
288
-
289
271
if c .SecurityScan .PipelineNamespace == "" {
290
272
c .SecurityScan .PipelineNamespace = c .Namespace
291
273
}
@@ -389,40 +371,6 @@ func (c ClusterIngressConfig) Validate() error {
389
371
return errs
390
372
}
391
373
392
- // ClusterLoggingConfig contains cluster logging configuration.
393
- type ClusterLoggingConfig struct {
394
- Enabled bool
395
-
396
- logging.Config `mapstructure:",squash"`
397
- }
398
-
399
- func (c ClusterLoggingConfig ) Validate () error {
400
- var errs error
401
-
402
- if c .Enabled {
403
- errs = errors .Append (errs , c .Config .Validate ())
404
- }
405
-
406
- return errs
407
- }
408
-
409
- // ClusterMonitoringConfig contains cluster monitoring configuration.
410
- type ClusterMonitoringConfig struct {
411
- Enabled bool
412
-
413
- monitoring.Config `mapstructure:",squash"`
414
- }
415
-
416
- func (c ClusterMonitoringConfig ) Validate () error {
417
- var errs error
418
-
419
- if c .Enabled {
420
- errs = errors .Append (errs , c .Config .Validate ())
421
- }
422
-
423
- return errs
424
- }
425
-
426
374
// ClusterSecurityScanConfig contains cluster security scan configuration.
427
375
type ClusterSecurityScanConfig struct {
428
376
Enabled bool
0 commit comments