Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1087 from flanksource/disable-flag-grafana
Browse files Browse the repository at this point in the history
add ability to disable grafana operator deployment
  • Loading branch information
moshloop committed Feb 12, 2024
2 parents a9b6d20 + 5997aa7 commit ec1a262
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/phases/monitoring/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit ec1a262

Please sign in to comment.