Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrometheusesKind = "Prometheus" PrometheusName = "prometheuses" AlertmanagersKind = "Alertmanager" AlertmanagerName = "alertmanagers" ServiceMonitorsKind = "ServiceMonitor" ServiceMonitorName = "servicemonitors" PodMonitorsKind = "PodMonitor" PodMonitorName = "podmonitors" PrometheusRuleKind = "PrometheusRule" PrometheusRuleName = "prometheusrules" ProbesKind = "Probe" ProbeName = "probes" ScrapeConfigsKind = "ScrapeConfig" ScrapeConfigName = "scrapeconfigs" )
Variables ¶
View Source
var (
GroupName = "monitoring.coreos.com"
)
GroupName is set to var instead of const, since this provides the ability for clients importing the module - github.com/nholuongut/prometheus-operator/pkg/apis to manage the operator's objects in a different API group
Use `ldflags` in the client side, e.g.: go run -ldflags="-s -X github.com/nholuongut/prometheus-operator/pkg/apis/monitoring.GroupName=monitoring.example.com" ./example/client/.
Functions ¶
func ResourceToKind ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.