diff --git a/pkg/phases/monitoring/monitoring.go b/pkg/phases/monitoring/monitoring.go index 400a13694..b4052735f 100644 --- a/pkg/phases/monitoring/monitoring.go +++ b/pkg/phases/monitoring/monitoring.go @@ -75,6 +75,14 @@ func Install(p *platform.Platform) error { } } } + if p.Monitoring.DisableGrafana { + for i, v := range specs { + if v == "grafana-operator.yaml" { + specs = append(specs[:i], specs[i+1:]...) + break + } + } + } if p.Monitoring.Karma.Version == "" { p.Monitoring.Karma.Version = "v0.63" diff --git a/pkg/types/types.go b/pkg/types/types.go index 6703cc2e0..09d434773 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -515,6 +515,7 @@ type Monitoring struct { AlertManager AlertManager `yaml:"alertmanager,omitempty" json:"alertManager,omitempty"` KubeStateMetrics string `yaml:"kubeStateMetrics,omitempty" json:"kubeStateMetrics,omitempty"` DisableKubeStateMetrics Boolean `yaml:"disableKubeStateMetrics,omitempty" json:"disableKubeStateMetrics,omitempty"` + DisableGrafana Boolean `yaml:"disableGrafana,omitempty" json:"disableGrafana,omitempty"` KubeRbacProxy string `yaml:"kubeRbacProxy,omitempty" json:"kubeRbacProxy,omitempty"` NodeExporter string `yaml:"nodeExporter,omitempty" json:"nodeExporter,omitempty"` AddonResizer string `yaml:"addonResizer,omitempty" json:"addonResizer,omitempty"`