Documentation ¶
Index ¶
Constants ¶
View Source
const UnLimitedResource = "unlimited"
Variables ¶
View Source
var WatchNamespaceEnvVar = "WATCH_NAMESPACE"
WatchNamespaceEnvVar is the constant for env variable WATCH_NAMESPACE which specifies the Namespace to watch. An empty value means the operator is running with cluster scope.
Functions ¶
func MustGetNamespaceListOptions ¶ added in v0.19.0
func MustGetNamespaceListOptions() *client.ListOptions
func MustGetWatchNamespace ¶ added in v0.19.0
func MustGetWatchNamespace() string
MustGetWatchNamespace returns the Namespace the operator should be watching for changes
Types ¶
type BaseOperatorConf ¶
type BaseOperatorConf struct { // enables custom config reloader for vmauth and vmagent, // it should speed-up config reloading process. UseCustomConfigReloader bool `default:"false"` CustomConfigReloaderImage string `default:"victoriametrics/operator:config-reloader-0.1.0"` PSPAutoCreateEnabled bool `default:"true"` VMAlertDefault struct { Image string `default:"victoriametrics/vmalert"` Version string `default:"v1.71.0"` Port string `default:"8080"` UseDefaultResources bool `default:"true"` Resource struct { Limit struct { Mem string `default:"500Mi"` Cpu string `default:"200m"` } Request struct { Mem string `default:"200Mi"` Cpu string `default:"50m"` } } ConfigReloaderCPU string `default:"100m"` ConfigReloaderMemory string `default:"25Mi"` ConfigReloadImage string `default:"jimmidyson/configmap-reload:v0.3.0"` } VMAgentDefault struct { Image string `default:"victoriametrics/vmagent"` Version string `default:"v1.71.0"` ConfigReloadImage string `default:"quay.io/prometheus-operator/prometheus-config-reloader:v0.48.1"` Port string `default:"8429"` UseDefaultResources bool `default:"true"` Resource struct { Limit struct { Mem string `default:"500Mi"` Cpu string `default:"200m"` } Request struct { Mem string `default:"200Mi"` Cpu string `default:"50m"` } } ConfigReloaderCPU string `default:"100m"` ConfigReloaderMemory string `default:"25Mi"` } VMSingleDefault struct { Image string `default:"victoriametrics/victoria-metrics"` Version string `default:"v1.71.0"` Port string `default:"8429"` UseDefaultResources bool `default:"true"` Resource struct { Limit struct { Mem string `default:"1500Mi"` Cpu string `default:"1200m"` } Request struct { Mem string `default:"500Mi"` Cpu string `default:"150m"` } } ConfigReloaderCPU string `default:"100m"` ConfigReloaderMemory string `default:"25Mi"` } VMClusterDefault struct { UseDefaultResources bool `default:"true"` VMSelectDefault struct { Image string `default:"victoriametrics/vmselect"` Version string `default:"v1.71.0-cluster"` Port string `default:"8481"` Resource struct { Limit struct { Mem string `default:"1000Mi"` Cpu string `default:"500m"` } Request struct { Mem string `default:"500Mi"` Cpu string `default:"100m"` } } } VMStorageDefault struct { Image string `default:"victoriametrics/vmstorage"` Version string `default:"v1.71.0-cluster"` VMInsertPort string `default:"8400"` VMSelectPort string `default:"8401"` Port string `default:"8482"` Resource struct { Limit struct { Mem string `default:"1500Mi"` Cpu string `default:"1000m"` } Request struct { Mem string `default:"500Mi"` Cpu string `default:"250m"` } } } VMInsertDefault struct { Image string `default:"victoriametrics/vminsert"` Version string `default:"v1.71.0-cluster"` Port string `default:"8480"` Resource struct { Limit struct { Mem string `default:"500Mi"` Cpu string `default:"500m"` } Request struct { Mem string `default:"200Mi"` Cpu string `default:"150m"` } } } } VMAlertManager struct { ConfigReloaderImage string `default:"jimmidyson/configmap-reload:v0.3.0"` ConfigReloaderCPU string `default:"100m"` ConfigReloaderMemory string `default:"25Mi"` AlertmanagerDefaultBaseImage string `default:"prom/alertmanager"` AlertManagerVersion string `default:"v0.22.2"` LocalHost string `default:"127.0.0.1"` UseDefaultResources bool `default:"true"` Resource struct { Limit struct { Mem string `default:"256Mi"` Cpu string `default:"100m"` } Request struct { Mem string `default:"56Mi"` Cpu string `default:"30m"` } } } DisableSelfServiceScrapeCreation bool `default:"false"` VMBackup struct { Image string `default:"victoriametrics/vmbackupmanager"` Version string `default:"v1.71.0-enterprise"` Port string `default:"8300"` UseDefaultResources bool `default:"true"` Resource struct { Limit struct { Mem string `default:"500Mi"` Cpu string `default:"500m"` } Request struct { Mem string `default:"200Mi"` Cpu string `default:"150m"` } } LogLevel string `default:"INFO"` LogFormat string } VMAuthDefault struct { Image string `default:"victoriametrics/vmauth"` Version string `default:"v1.71.0"` ConfigReloadImage string `default:"quay.io/prometheus-operator/prometheus-config-reloader:v0.48.1"` Port string `default:"8427"` UseDefaultResources bool `default:"true"` Resource struct { Limit struct { Mem string `default:"300Mi"` Cpu string `default:"200m"` } Request struct { Mem string `default:"100Mi"` Cpu string `default:"50m"` } } ConfigReloaderCPU string `default:"100m"` ConfigReloaderMemory string `default:"25Mi"` } EnabledPrometheusConverter struct { PodMonitor bool `default:"true"` ServiceScrape bool `default:"true"` PrometheusRule bool `default:"true"` Probe bool `default:"true"` } EnabledPrometheusConverterOwnerReferences bool `default:"false"` Host string `default:"0.0.0.0"` ListenAddress string `default:"0.0.0.0"` DefaultLabels string `default:"managed-by=vm-operator"` Labels Labels `ignored:"true"` LogLevel string LogFormat string ClusterDomainName string `default:""` PodWaitReadyTimeout time.Duration `default:"80s"` PodWaitReadyIntervalCheck time.Duration `default:"5s"` PodWaitReadyInitDelay time.Duration `default:"10s"` }
func MustGetBaseConfig ¶
func MustGetBaseConfig() *BaseOperatorConf
func (BaseOperatorConf) Validate ¶ added in v0.10.0
func (boc BaseOperatorConf) Validate() error
Validate - validates config on best effort.
type Labels ¶
type Namespaces ¶
type Namespaces struct {
// allow list/deny list for common custom resources
AllowList, DenyList map[string]struct{}
}
Click to show internal directories.
Click to hide internal directories.