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

Commit

Permalink
fix: remove kube-state-metrics deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibhor Dabas committed Aug 24, 2023
1 parent 33d14a2 commit 0143aa4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 291 deletions.
276 changes: 0 additions & 276 deletions manifests/monitoring/kube-state-metrics.yaml

This file was deleted.

1 change: 0 additions & 1 deletion pkg/phases/monitoring/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ var specs = []string{
"grafana-operator.yaml",
"kube-prometheus.yaml",
"prometheus-adapter.yaml",
"kube-state-metrics.yaml",
"pushgateway.yaml",
"unmanaged/alertmanager-rules.yaml.raw",
"unmanaged/service-monitors.yaml",
Expand Down
27 changes: 13 additions & 14 deletions pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,20 +506,19 @@ func (dns DynamicDNS) IsEnabled() bool {
}

type Monitoring struct {
Disabled Boolean `yaml:"disabled,omitempty" json:"disabled,omitempty"`
AlertEmail string `yaml:"alert_email,omitempty" json:"alert_email,omitempty"`
Version string `yaml:"version,omitempty" json:"version,omitempty"`
Prometheus Prometheus `yaml:"prometheus,omitempty" json:"prometheus,omitempty"`
Karma Karma `yaml:"karma,omitempty" json:"karma,omitempty"`
Grafana Grafana `yaml:"grafana,omitempty" json:"grafana,omitempty"`
AlertManager AlertManager `yaml:"alertmanager,omitempty" json:"alertManager,omitempty"`
KubeStateMetrics string `yaml:"kubeStateMetrics,omitempty" json:"kubeStateMetrics,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"`
ExcludeAlerts []string `yaml:"excludeAlerts,omitempty" json:"excludeAlerts,omitempty"`
PushGateway PushGateway `yaml:"pushGateway,omitempty" json:"pushGateway,omitempty"`
E2E MonitoringE2E `yaml:"e2e,omitempty" json:"e2e,omitempty"`
Disabled Boolean `yaml:"disabled,omitempty" json:"disabled,omitempty"`
AlertEmail string `yaml:"alert_email,omitempty" json:"alert_email,omitempty"`
Version string `yaml:"version,omitempty" json:"version,omitempty"`
Prometheus Prometheus `yaml:"prometheus,omitempty" json:"prometheus,omitempty"`
Karma Karma `yaml:"karma,omitempty" json:"karma,omitempty"`
Grafana Grafana `yaml:"grafana,omitempty" json:"grafana,omitempty"`
AlertManager AlertManager `yaml:"alertmanager,omitempty" json:"alertManager,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"`
ExcludeAlerts []string `yaml:"excludeAlerts,omitempty" json:"excludeAlerts,omitempty"`
PushGateway PushGateway `yaml:"pushGateway,omitempty" json:"pushGateway,omitempty"`
E2E MonitoringE2E `yaml:"e2e,omitempty" json:"e2e,omitempty"`
}

func (m Monitoring) IsDisabled() bool {
Expand Down

0 comments on commit 0143aa4

Please sign in to comment.