Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VictoriaMetrics/operator
/ functions
Functions
4,346 in github.com/VictoriaMetrics/operator
⨍
Functions
4,346
◇
Types & classes
1,182
↓ 4 callers
Method
SubResource
(subResource string)
internal/manager/client.go:49
↓ 4 callers
Function
SyncConfigObjectStatus
SyncConfigObjectStatus sets status.updateStatus and status.reason of a config-kind object after its own reconcile. Parents also update the status whe
internal/controller/operator/factory/reconcile/status.go:360
↓ 4 callers
Method
VLAgentName
VLAgentName returns the name of the VLAgent for zone.
api/operator/v1alpha1/vldistributed_types.go:139
↓ 4 callers
Method
VLClusterName
VLClusterName return cluster name for zone
api/operator/v1alpha1/vldistributed_types.go:151
↓ 4 callers
Method
VLSingleName
VLSingleName returns single name for zone
api/operator/v1alpha1/vldistributed_types.go:163
↓ 4 callers
Method
VMAuthName
VMAuthName returns the name of the VMAuth resource to be created/managed.
api/operator/v1alpha1/vmdistributed_types.go:428
↓ 4 callers
Method
Validate
()
api/operator/v1beta1/vmalertmanagerconfig_types.go:218
↓ 4 callers
Method
Validate
()
api/operator/v1beta1/vmauth_types.go:450
↓ 4 callers
Method
Validate
Validate performs syntax
api/operator/v1/common.go:126
↓ 4 callers
Method
accessScheme
()
api/operator/v1beta1/vmalertmanager_types.go:487
↓ 4 callers
Function
addSelectorToRelabelingFor
(relabelings []yaml.MapSlice, typeName string, selector metav1.LabelSelector, mustSkipAdd bool)
internal/controller/operator/factory/vmscrapes/vmscrapes.go:426
↓ 4 callers
Method
appendForbiddenProperties
(props []string)
api/operator/v1beta1/vmextra_types.go:1170
↓ 4 callers
Function
appendIfNotEmpty
(src []string, key string, origin yaml.MapSlice)
internal/controller/operator/factory/vmauth/vmusers_config.go:453
↓ 4 callers
Function
buildVMAuthLB
(cr *vmv1alpha1.VLDistributed, zs *zones, excludeIds ...int)
internal/controller/operator/factory/vldistributed/vmauth.go:33
↓ 4 callers
Function
checkRelabelConfigs
(src []*RelabelConfig)
api/operator/v1beta1/vmagent_types.go:744
↓ 4 callers
Function
createOrUpdateScrapeConfig
createOrUpdateScrapeConfig reconciles the main scrape config.
internal/controller/operator/factory/vmsingle/vmsingle.go:806
↓ 4 callers
Function
deleteOrphaned
(ctx context.Context, rclient client.Client, cr *vmv1beta1.VMAgent, baseConf *config.BaseOperatorConf)
internal/controller/operator/factory/vmagent/vmagent.go:1252
↓ 4 callers
Function
deleteOrphaned
(ctx context.Context, rclient client.Client, cr *vmv1beta1.VMSingle, baseConf *config.BaseOperatorConf)
internal/controller/operator/factory/vmsingle/vmsingle.go:702
↓ 4 callers
Function
generateK8SSDConfig
(ac *build.AssetsCache, opts ...generateK8SSDConfigOptions)
internal/controller/operator/factory/vmscrapes/vmscrapes.go:256
↓ 4 callers
Function
getAssetsCache
(ctx context.Context, rclient client.Client, cr *vmv1beta1.VMSingle)
internal/controller/operator/factory/vmsingle/vmsingle.go:775
↓ 4 callers
Function
getEnvOpts
()
internal/config/config.go:59
↓ 4 callers
Function
getZones
getZones builds desired zones
internal/controller/operator/factory/vmdistributed/zone.go:104
↓ 4 callers
Function
getZones
getZones builds desired zones
internal/controller/operator/factory/vldistributed/zone.go:103
↓ 4 callers
Function
hashBytes
(data []byte)
cmd/config-reloader/content_hash.go:35
↓ 4 callers
Function
listObjectsByListProto
(namespace string, listProto client.ObjectList)
test/e2e/watchnamespace/utils_test.go:99
↓ 4 callers
Function
mergeMaps
(existingMap, newMap, prevMap map[string]string)
internal/controller/operator/factory/reconcile/reconcile.go:54
↓ 4 callers
Function
mustGetFirstPod
nolint:dupl,lll
test/e2e/utils_test.go:262
↓ 4 callers
Function
newPodSpec
(cr *vmv1beta1.VMAgent, ac *build.AssetsCache, extraConfigSecretCount int)
internal/controller/operator/factory/vmagent/vmagent.go:532
↓ 4 callers
Method
observe
(key string, hash uint32)
cmd/config-reloader/content_hash.go:29
↓ 4 callers
Function
parseRange
(s string)
api/operator/v1beta1/vmalertmanagerconfig_types.go:2038
↓ 4 callers
Function
sanitizeLabelName
(name string)
internal/controller/operator/factory/vmscrapes/vmscrapes.go:80
↓ 4 callers
Function
selectUsers
selects vmusers for given vmauth.
internal/controller/operator/factory/vmauth/vmusers_config.go:1018
↓ 4 callers
Function
validateURLPrefix
(urlPrefixStr string)
api/operator/v1beta1/vmauth_types.go:269
↓ 4 callers
Function
writeNewContent
(data []byte)
cmd/config-reloader/main.go:396
↓ 3 callers
Method
AsKey
AsKey returns unique key for object
api/operator/v1beta1/vmrule_types.go:161
↓ 3 callers
Method
AsOwner
AsOwner returns owner references with current object as owner
api/operator/v1beta1/vmagent_types.go:498
↓ 3 callers
Method
AsOwner
AsOwner returns owner references with current object as owner
api/operator/v1alpha1/vmdistributed_types.go:438
↓ 3 callers
Method
AsOwner
AsOwner returns owner references with current object as owner
api/operator/v1alpha1/vldistributed_types.go:402
↓ 3 callers
Function
AssertConfigReloaderWatchTargetDirs
AssertConfigReloaderWatchTargetDirs asserts the "config-reloader" container's --watched-dir/--target-dir flags pair up exactly as want maps them (empt
internal/controller/operator/factory/k8stools/test_helpers.go:207
↓ 3 callers
Method
BuildScrapeJobsConfig
BuildScrapeJobsConfig returns the global config section (without scrape_configs) and the flat list of individual scrape job configs. Callers that need
internal/controller/operator/factory/vmscrapes/objects.go:383
↓ 3 callers
Function
CreateOrUpdate
CreateOrUpdate performs an update for vlsingle resource
internal/controller/operator/factory/vlsingle/vlsingle.go:70
↓ 3 callers
Function
CreateOrUpdate
CreateOrUpdate creates deployment for vlagent and configures it waits for healthy state
internal/controller/operator/factory/vlagent/vlagent.go:89
↓ 3 callers
Function
CreateOrUpdate
CreateOrUpdate creates statefulset for vtagent and configures it waits for healthy state
internal/controller/operator/factory/vtagent/vtagent.go:86
↓ 3 callers
Method
Ctx
Ctx returns the manager's context.
internal/podutil/util.go:102
↓ 3 callers
Function
DaemonSet
DaemonSet performs an update or create operator for daemonset and waits until it finishes update rollout
internal/controller/operator/factory/reconcile/daemonset.go:21
↓ 3 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMAgent.
api/operator/v1beta1/zz_generated.deepcopy.go:4700
↓ 3 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMAlert.
api/operator/v1beta1/zz_generated.deepcopy.go:5056
↓ 3 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMAuth.
api/operator/v1beta1/zz_generated.deepcopy.go:5759
↓ 3 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMSingle.
api/operator/v1beta1/zz_generated.deepcopy.go:7411
↓ 3 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VLSingle.
api/operator/v1/zz_generated.deepcopy.go:834
↓ 3 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VTSingle.
api/operator/v1/zz_generated.deepcopy.go:2048
↓ 3 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMDistributed.
api/operator/v1alpha1/zz_generated.deepcopy.go:398
↓ 3 callers
Method
DefaultStatusFields
(ST)
internal/controller/operator/factory/reconcile/status.go:456
↓ 3 callers
Method
Delete
Delete cancels and removes id.
internal/podutil/util.go:139
↓ 3 callers
Function
ExtraConfigSecretName
ExtraConfigSecretName returns the name of the Nth overflow secret for cr.
internal/controller/operator/factory/vmscrapes/extra_config.go:24
↓ 3 callers
Function
FetchChartDefaults
FetchChartDefaults fetches chart's default values.yaml at its latest released version.
internal/converter/converter.go:761
↓ 3 callers
Function
GetInterceptorsWithObjects
GetInterceptorsWithObjects returns interceptors for objects
internal/controller/operator/factory/k8stools/interceptors.go:70
↓ 3 callers
Method
GetMinReplicas
GetMinReplicas returns default minReplicas value
api/operator/v1beta1/vmextra_types.go:537
↓ 3 callers
Method
IDs
IDs returns the list of currently tracked IDs.
internal/podutil/util.go:164
↓ 3 callers
Function
InitOperatorProcess
InitOperatorProcess prepares operator process for usage, must be called once
test/e2e/suite/suite.go:182
↓ 3 callers
Method
KeepNetworkPolicy
KeepNetworkPolicy adds given NetworkPolicy's name to a map of resource names to be excluded from deletion
internal/controller/operator/factory/finalize/cluster.go:201
↓ 3 callers
Function
NewActionRecordingInterceptor
NewActionRecordingInterceptor returns an interceptor that records actions to the provided slice pointer. It wraps an existing interceptorFuncs if prov
internal/controller/operator/factory/k8stools/interceptors.go:99
↓ 3 callers
Function
NewManager
NewManager creates a Manager that is a child of ctx.
internal/podutil/util.go:92
↓ 3 callers
Function
OnVMAgentDelete
OnVMAgentDelete deletes all vmagent related resources
internal/controller/operator/factory/finalize/vmagent.go:21
↓ 3 callers
Function
OnVMSingleDelete
OnVMSingleDelete deletes all vmsingle related resources
internal/controller/operator/factory/finalize/vmsingle.go:19
↓ 3 callers
Function
PodMonitor
PodMonitor create VMPodScrape from PodMonitor
internal/controller/operator/factory/converter/apis.go:385
↓ 3 callers
Method
Port
Port returns port for accessing alertmanager
api/operator/v1beta1/vmalertmanager_types.go:399
↓ 3 callers
Function
RemoveOrphanedDeployments
RemoveOrphanedDeployments removes Deployments detached from given object
internal/controller/operator/factory/finalize/orphaned.go:19
↓ 3 callers
Function
Run
Run executes the provided command within this context
test/utils/utils.go:38
↓ 3 callers
Method
SelectorLabels
()
api/operator/v1beta1/vmalert_types.go:427
↓ 3 callers
Function
ShutdownOperatorProcess
ShutdownOperatorProcess stops operator process and cleanup resources
test/e2e/suite/suite.go:205
↓ 3 callers
Function
UpdateObjectStatus
UpdateStatus reconcile provided object status with given actualStatus status
internal/controller/operator/factory/reconcile/status.go:465
↓ 3 callers
Method
UseTLS
UseTLS returns true if TLS is enabled
api/operator/v1/vlagent_types.go:465
↓ 3 callers
Method
VLAuthName
VLAuthName returns the name of the VMAuth resource to be created/managed.
api/operator/v1alpha1/vldistributed_types.go:392
↓ 3 callers
Method
Validate
Validate performs semantic validation of object
api/operator/v1beta1/vmrule_types.go:166
↓ 3 callers
Method
ValidateArbitraryFSAccess
()
api/operator/v1beta1/vmuser_types.go:325
↓ 3 callers
Function
WaitForConfigReloadHash
WaitForConfigReloadHash verifies that every ready replica's config-reloader sidecar has confirmed applying content matching hash, an exact CRC32 match
internal/controller/operator/factory/reconcile/config_reload.go:45
↓ 3 callers
Method
addLabel
(name string, value string)
test/e2e/suite/allure/result.go:72
↓ 3 callers
Method
addPrefix
(string)
internal/controller/operator/factory/vmanomaly/config/models.go:68
↓ 3 callers
Method
asSpec
asSpec merges the flat tls* keys into TLSConfig, unless it was already set explicitly.
internal/converter/converter.go:648
↓ 3 callers
Function
assertStrictSecurity
(podSpec corev1.PodSpec)
test/e2e/vmcluster_test.go:1962
↓ 3 callers
Function
buildCRPrefixedName
(cr *vmv1beta1.VMAlertmanagerConfig, name string)
internal/controller/operator/factory/vmalertmanager/config.go:385
↓ 3 callers
Method
buildConfig
builds vmauth config.
internal/controller/operator/factory/vmauth/vmusers_config.go:69
↓ 3 callers
Function
buildRB
buildRB builds the RoleBinding for ns. The subject always points to the vmagent service account in cr.Namespace. An owner reference is set only in cr'
internal/controller/operator/factory/vmagent/rbac.go:226
↓ 3 callers
Function
buildRB
(cr *vmv1beta1.VMSingle, ns string)
internal/controller/operator/factory/vmsingle/rbac.go:211
↓ 3 callers
Function
buildRemoteWriteArgs
(cr *vmv1beta1.VMAgent, ac *build.AssetsCache)
internal/controller/operator/factory/vmagent/vmagent.go:1001
↓ 3 callers
Function
buildRole
buildRole builds the Role for ns. In cr's own namespace: includes the scoped secrets rule (for config-reloader) plus SD rules, with an owner reference
internal/controller/operator/factory/vmagent/rbac.go:205
↓ 3 callers
Function
buildRole
(cr *vmv1beta1.VMSingle, ns string)
internal/controller/operator/factory/vmsingle/rbac.go:192
↓ 3 callers
Method
confirmReload
confirmReload publishes every pending hash as confirmed. Called only after a successful (HTTP 200/204) /-/reload call.
cmd/config-reloader/content_hash.go:41
↓ 3 callers
Function
convertBearerToken
(src *corev1.SecretKeySelector)
internal/controller/operator/factory/converter/apis.go:196
↓ 3 callers
Function
convertSecretOrConfigmap
(promSCM promv1.SecretOrConfigMap)
internal/controller/operator/factory/converter/apis.go:297
↓ 3 callers
Function
createOrUpdateConfig
createOrUpdateConfig reconcile configuration for vmanomaly and returns configuration consistent hash
internal/controller/operator/factory/vmanomaly/config.go:33
↓ 3 callers
Function
createOrUpdateRelabelConfigsAssets
createOrUpdateRelabelConfigsAssets builds relabeling configs for vmagent at separate configmap, serialized as yaml.
internal/controller/operator/factory/vmagent/vmagent.go:893
↓ 3 callers
Function
createOrUpdateStreamAggrConfig
createOrUpdateStreamAggrConfig builds stream aggregation configs for vmagent at separate configmap, serialized as yaml.
internal/controller/operator/factory/vmagent/vmagent.go:968
↓ 3 callers
Function
diffDeepInternal
diffDeepInternal is similar to diffDeep except that unset fields in desired are ignored (not compared). This allows us to focus on the fields that mat
internal/controller/operator/factory/reconcile/diff.go:132
↓ 3 callers
Function
expectHTTPRequestToSucceed
(ctx context.Context, opts httpRequestOpts)
test/e2e/utils_test.go:134
↓ 3 callers
Function
fetchLatestChartVersion
fetchLatestChartVersion fetches the latest version of chart from the helm-charts repository.
internal/converter/converter.go:730
↓ 3 callers
Function
getAssetsCache
(ctx context.Context, rclient client.Client, cr *vmv1beta1.VMAlert)
internal/controller/operator/factory/vmalert/vmalert.go:90
↓ 3 callers
Function
getNamespacesFromNamespaceSelector
getNamespacesFromNamespaceSelector gets a list of namespaces to select based on the given namespace selector, the given default namespace, and whether
internal/controller/operator/factory/vmscrapes/vmscrapes.go:232
↓ 3 callers
Function
getTimestampMsFromTime
(t time.Time)
test/e2e/suite/allure/misc.go:29
← previous
next →
301–400 of 4,346, ranked by callers