operator.v1beta1.vmCluster
"VMCluster is fast, cost-effective and scalable time-series database.\nCluster version with"
Index
fn new(name)
obj metadata
fn withAnnotations(annotations)
fn withAnnotationsMixin(annotations)
fn withClusterName(clusterName)
fn withCreationTimestamp(creationTimestamp)
fn withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
fn withDeletionTimestamp(deletionTimestamp)
fn withFinalizers(finalizers)
fn withFinalizersMixin(finalizers)
fn withGenerateName(generateName)
fn withGeneration(generation)
fn withLabels(labels)
fn withLabelsMixin(labels)
fn withName(name)
fn withNamespace(namespace)
fn withOwnerReferences(ownerReferences)
fn withOwnerReferencesMixin(ownerReferences)
fn withResourceVersion(resourceVersion)
fn withSelfLink(selfLink)
fn withUid(uid)
obj spec
fn withClusterDomainName(clusterDomainName)
fn withClusterVersion(clusterVersion)
fn withImagePullSecrets(imagePullSecrets)
fn withImagePullSecretsMixin(imagePullSecrets)
fn withPaused(paused)
fn withReplicationFactor(replicationFactor)
fn withRetentionPeriod(retentionPeriod)
fn withServiceAccountName(serviceAccountName)
fn withUseStrictSecurity(useStrictSecurity)
obj spec.imagePullSecrets
obj spec.license
obj spec.vminsert
fn withAffinity(affinity)
fn withAffinityMixin(affinity)
fn withClusterNativeListenPort(clusterNativeListenPort)
fn withConfigMaps(configMaps)
fn withConfigMapsMixin(configMaps)
fn withContainers(containers)
fn withContainersMixin(containers)
fn withDisableSelfServiceScrape(disableSelfServiceScrape)
fn withDnsPolicy(dnsPolicy)
fn withExtraArgs(extraArgs)
fn withExtraArgsMixin(extraArgs)
fn withExtraEnvs(extraEnvs)
fn withExtraEnvsMixin(extraEnvs)
fn withHostAliases(hostAliases)
fn withHostAliasesMixin(hostAliases)
fn withHostNetwork(hostNetwork)
fn withHost_aliases(host_aliases)
fn withHost_aliasesMixin(host_aliases)
fn withHpa(hpa)
fn withHpaMixin(hpa)
fn withImagePullSecrets(imagePullSecrets)
fn withImagePullSecretsMixin(imagePullSecrets)
fn withInitContainers(initContainers)
fn withInitContainersMixin(initContainers)
fn withLivenessProbe(livenessProbe)
fn withLivenessProbeMixin(livenessProbe)
fn withLogFormat(logFormat)
fn withLogLevel(logLevel)
fn withMinReadySeconds(minReadySeconds)
fn withNodeSelector(nodeSelector)
fn withNodeSelectorMixin(nodeSelector)
fn withPaused(paused)
fn withPort(port)
fn withPriorityClassName(priorityClassName)
fn withReadinessGates(readinessGates)
fn withReadinessGatesMixin(readinessGates)
fn withReadinessProbe(readinessProbe)
fn withReadinessProbeMixin(readinessProbe)
fn withReplicaCount(replicaCount)
fn withRevisionHistoryLimitCount(revisionHistoryLimitCount)
fn withRuntimeClassName(runtimeClassName)
fn withSchedulerName(schedulerName)
fn withSecrets(secrets)
fn withSecretsMixin(secrets)
fn withSecurityContext(securityContext)
fn withSecurityContextMixin(securityContext)
fn withServiceScrapeSpec(serviceScrapeSpec)
fn withServiceScrapeSpecMixin(serviceScrapeSpec)
fn withStartupProbe(startupProbe)
fn withStartupProbeMixin(startupProbe)
fn withTerminationGracePeriodSeconds(terminationGracePeriodSeconds)
fn withTolerations(tolerations)
fn withTolerationsMixin(tolerations)
fn withTopologySpreadConstraints(topologySpreadConstraints)
fn withTopologySpreadConstraintsMixin(topologySpreadConstraints)
fn withUpdateStrategy(updateStrategy)
fn withUseDefaultResources(useDefaultResources)
fn withUseStrictSecurity(useStrictSecurity)
fn withVolumeMounts(volumeMounts)
fn withVolumeMountsMixin(volumeMounts)
fn withVolumes(volumes)
fn withVolumesMixin(volumes)
obj spec.vminsert.dnsConfig
obj spec.vminsert.extraEnvs
obj spec.vminsert.hostAliases
obj spec.vminsert.host_aliases
obj spec.vminsert.image
obj spec.vminsert.imagePullSecrets
obj spec.vminsert.insertPorts
obj spec.vminsert.podDisruptionBudget
obj spec.vminsert.podMetadata
obj spec.vminsert.readinessGates
obj spec.vminsert.resources
obj spec.vminsert.rollingUpdate
obj spec.vminsert.serviceSpec
obj spec.vminsert.tolerations
obj spec.vminsert.volumeMounts
obj spec.vmselect
fn withAffinity(affinity)
fn withAffinityMixin(affinity)
fn withCacheMountPath(cacheMountPath)
fn withClaimTemplates(claimTemplates)
fn withClaimTemplatesMixin(claimTemplates)
fn withClusterNativeListenPort(clusterNativeListenPort)
fn withConfigMaps(configMaps)
fn withConfigMapsMixin(configMaps)
fn withContainers(containers)
fn withContainersMixin(containers)
fn withDisableSelfServiceScrape(disableSelfServiceScrape)
fn withDnsPolicy(dnsPolicy)
fn withExtraArgs(extraArgs)
fn withExtraArgsMixin(extraArgs)
fn withExtraEnvs(extraEnvs)
fn withExtraEnvsMixin(extraEnvs)
fn withHostAliases(hostAliases)
fn withHostAliasesMixin(hostAliases)
fn withHostNetwork(hostNetwork)
fn withHost_aliases(host_aliases)
fn withHost_aliasesMixin(host_aliases)
fn withHpa(hpa)
fn withHpaMixin(hpa)
fn withImagePullSecrets(imagePullSecrets)
fn withImagePullSecretsMixin(imagePullSecrets)
fn withInitContainers(initContainers)
fn withInitContainersMixin(initContainers)
fn withLivenessProbe(livenessProbe)
fn withLivenessProbeMixin(livenessProbe)
fn withLogFormat(logFormat)
fn withLogLevel(logLevel)
fn withMinReadySeconds(minReadySeconds)
fn withNodeSelector(nodeSelector)
fn withNodeSelectorMixin(nodeSelector)
fn withPaused(paused)
fn withPort(port)
fn withPriorityClassName(priorityClassName)
fn withReadinessGates(readinessGates)
fn withReadinessGatesMixin(readinessGates)
fn withReadinessProbe(readinessProbe)
fn withReadinessProbeMixin(readinessProbe)
fn withReplicaCount(replicaCount)
fn withRevisionHistoryLimitCount(revisionHistoryLimitCount)
fn withRollingUpdateStrategy(rollingUpdateStrategy)
fn withRuntimeClassName(runtimeClassName)
fn withSchedulerName(schedulerName)
fn withSecrets(secrets)
fn withSecretsMixin(secrets)
fn withSecurityContext(securityContext)
fn withSecurityContextMixin(securityContext)
fn withServiceScrapeSpec(serviceScrapeSpec)
fn withServiceScrapeSpecMixin(serviceScrapeSpec)
fn withStartupProbe(startupProbe)
fn withStartupProbeMixin(startupProbe)
fn withTerminationGracePeriodSeconds(terminationGracePeriodSeconds)
fn withTolerations(tolerations)
fn withTolerationsMixin(tolerations)
fn withTopologySpreadConstraints(topologySpreadConstraints)
fn withTopologySpreadConstraintsMixin(topologySpreadConstraints)
fn withUseDefaultResources(useDefaultResources)
fn withUseStrictSecurity(useStrictSecurity)
fn withVolumeMounts(volumeMounts)
fn withVolumeMountsMixin(volumeMounts)
fn withVolumes(volumes)
fn withVolumesMixin(volumes)
obj spec.vmselect.claimTemplates
fn withApiVersion(apiVersion)
fn withKind(kind)
fn withMetadata(metadata)
fn withMetadataMixin(metadata)
obj spec.vmselect.claimTemplates.spec
fn withAccessModes(accessModes)
fn withAccessModesMixin(accessModes)
fn withStorageClassName(storageClassName)
fn withVolumeAttributesClassName(volumeAttributesClassName)
fn withVolumeMode(volumeMode)
fn withVolumeName(volumeName)
obj spec.vmselect.claimTemplates.spec.dataSource
obj spec.vmselect.claimTemplates.spec.dataSourceRef
obj spec.vmselect.claimTemplates.spec.resources
obj spec.vmselect.claimTemplates.spec.selector
obj spec.vmselect.dnsConfig
obj spec.vmselect.extraEnvs
obj spec.vmselect.hostAliases
obj spec.vmselect.host_aliases
obj spec.vmselect.image
obj spec.vmselect.imagePullSecrets
obj spec.vmselect.persistentVolume
obj spec.vmselect.podDisruptionBudget
obj spec.vmselect.podMetadata
obj spec.vmselect.readinessGates
obj spec.vmselect.resources
obj spec.vmselect.serviceSpec
obj spec.vmselect.storage
fn withDisableMountSubPath(disableMountSubPath)
obj spec.vmselect.storage.emptyDir
obj spec.vmselect.storage.volumeClaimTemplate
fn withApiVersion(apiVersion)
fn withKind(kind)
obj spec.vmselect.storage.volumeClaimTemplate.metadata
obj spec.vmselect.storage.volumeClaimTemplate.spec
fn withAccessModes(accessModes)
fn withAccessModesMixin(accessModes)
fn withStorageClassName(storageClassName)
fn withVolumeAttributesClassName(volumeAttributesClassName)
fn withVolumeMode(volumeMode)
fn withVolumeName(volumeName)
obj spec.vmselect.storage.volumeClaimTemplate.spec.dataSource
obj spec.vmselect.storage.volumeClaimTemplate.spec.dataSourceRef
obj spec.vmselect.storage.volumeClaimTemplate.spec.resources
obj spec.vmselect.storage.volumeClaimTemplate.spec.selector
obj spec.vmselect.tolerations
obj spec.vmselect.volumeMounts
obj spec.vmstorage
fn withAffinity(affinity)
fn withAffinityMixin(affinity)
fn withClaimTemplates(claimTemplates)
fn withClaimTemplatesMixin(claimTemplates)
fn withConfigMaps(configMaps)
fn withConfigMapsMixin(configMaps)
fn withContainers(containers)
fn withContainersMixin(containers)
fn withDisableSelfServiceScrape(disableSelfServiceScrape)
fn withDnsPolicy(dnsPolicy)
fn withExtraArgs(extraArgs)
fn withExtraArgsMixin(extraArgs)
fn withExtraEnvs(extraEnvs)
fn withExtraEnvsMixin(extraEnvs)
fn withHostAliases(hostAliases)
fn withHostAliasesMixin(hostAliases)
fn withHostNetwork(hostNetwork)
fn withHost_aliases(host_aliases)
fn withHost_aliasesMixin(host_aliases)
fn withImagePullSecrets(imagePullSecrets)
fn withImagePullSecretsMixin(imagePullSecrets)
fn withInitContainers(initContainers)
fn withInitContainersMixin(initContainers)
fn withLivenessProbe(livenessProbe)
fn withLivenessProbeMixin(livenessProbe)
fn withLogFormat(logFormat)
fn withLogLevel(logLevel)
fn withMaintenanceInsertNodeIDs(maintenanceInsertNodeIDs)
fn withMaintenanceInsertNodeIDsMixin(maintenanceInsertNodeIDs)
fn withMaintenanceSelectNodeIDs(maintenanceSelectNodeIDs)
fn withMaintenanceSelectNodeIDsMixin(maintenanceSelectNodeIDs)
fn withMinReadySeconds(minReadySeconds)
fn withNodeSelector(nodeSelector)
fn withNodeSelectorMixin(nodeSelector)
fn withPaused(paused)
fn withPort(port)
fn withPriorityClassName(priorityClassName)
fn withReadinessGates(readinessGates)
fn withReadinessGatesMixin(readinessGates)
fn withReadinessProbe(readinessProbe)
fn withReadinessProbeMixin(readinessProbe)
fn withReplicaCount(replicaCount)
fn withRevisionHistoryLimitCount(revisionHistoryLimitCount)
fn withRollingUpdateStrategy(rollingUpdateStrategy)
fn withRuntimeClassName(runtimeClassName)
fn withSchedulerName(schedulerName)
fn withSecrets(secrets)
fn withSecretsMixin(secrets)
fn withSecurityContext(securityContext)
fn withSecurityContextMixin(securityContext)
fn withServiceScrapeSpec(serviceScrapeSpec)
fn withServiceScrapeSpecMixin(serviceScrapeSpec)
fn withStartupProbe(startupProbe)
fn withStartupProbeMixin(startupProbe)
fn withStorageDataPath(storageDataPath)
fn withTerminationGracePeriodSeconds(terminationGracePeriodSeconds)
fn withTolerations(tolerations)
fn withTolerationsMixin(tolerations)
fn withTopologySpreadConstraints(topologySpreadConstraints)
fn withTopologySpreadConstraintsMixin(topologySpreadConstraints)
fn withUseDefaultResources(useDefaultResources)
fn withUseStrictSecurity(useStrictSecurity)
fn withVmInsertPort(vmInsertPort)
fn withVmSelectPort(vmSelectPort)
fn withVolumeMounts(volumeMounts)
fn withVolumeMountsMixin(volumeMounts)
fn withVolumes(volumes)
fn withVolumesMixin(volumes)
obj spec.vmstorage.claimTemplates
fn withApiVersion(apiVersion)
fn withKind(kind)
fn withMetadata(metadata)
fn withMetadataMixin(metadata)
obj spec.vmstorage.claimTemplates.spec
fn withAccessModes(accessModes)
fn withAccessModesMixin(accessModes)
fn withStorageClassName(storageClassName)
fn withVolumeAttributesClassName(volumeAttributesClassName)
fn withVolumeMode(volumeMode)
fn withVolumeName(volumeName)
obj spec.vmstorage.claimTemplates.spec.dataSource
obj spec.vmstorage.claimTemplates.spec.dataSourceRef
obj spec.vmstorage.claimTemplates.spec.resources
obj spec.vmstorage.claimTemplates.spec.selector
obj spec.vmstorage.dnsConfig
obj spec.vmstorage.extraEnvs
obj spec.vmstorage.hostAliases
obj spec.vmstorage.host_aliases
obj spec.vmstorage.image
obj spec.vmstorage.imagePullSecrets
obj spec.vmstorage.podDisruptionBudget
obj spec.vmstorage.podMetadata
obj spec.vmstorage.readinessGates
obj spec.vmstorage.resources
obj spec.vmstorage.serviceSpec
obj spec.vmstorage.storage
obj spec.vmstorage.tolerations
obj spec.vmstorage.vmBackup
fn withAcceptEULA(acceptEULA)
fn withConcurrency(concurrency)
fn withCustomS3Endpoint(customS3Endpoint)
fn withDestination(destination)
fn withDestinationDisableSuffixAdd(destinationDisableSuffixAdd)
fn withDisableDaily(disableDaily)
fn withDisableHourly(disableHourly)
fn withDisableMonthly(disableMonthly)
fn withDisableWeekly(disableWeekly)
fn withExtraArgs(extraArgs)
fn withExtraArgsMixin(extraArgs)
fn withExtraEnvs(extraEnvs)
fn withExtraEnvsMixin(extraEnvs)
fn withLogFormat(logFormat)
fn withLogLevel(logLevel)
fn withPort(port)
fn withSnapshotCreateURL(snapshotCreateURL)
fn withSnapshotDeleteURL(snapshotDeleteURL)
fn withVolumeMounts(volumeMounts)
fn withVolumeMountsMixin(volumeMounts)
obj spec.vmstorage.vmBackup.credentialsSecret
obj spec.vmstorage.vmBackup.extraEnvs
fn withName(name)
fn withValue(value)
obj spec.vmstorage.vmBackup.extraEnvs.valueFrom
obj spec.vmstorage.vmBackup.image
obj spec.vmstorage.vmBackup.resources
obj spec.vmstorage.vmBackup.restore
obj spec.vmstorage.vmBackup.volumeMounts
obj spec.vmstorage.volumeMounts
Fields
fn new
new(name)
new returns an instance of VMCluster
obj metadata
"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."
fn metadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
fn metadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
Note: This function appends passed data to existing values
fn metadata.withClusterName
withClusterName(clusterName)
"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."
fn metadata.withCreationTimestamp
withCreationTimestamp(creationTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withDeletionGracePeriodSeconds
withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."
fn metadata.withDeletionTimestamp
withDeletionTimestamp(deletionTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withFinalizers
withFinalizers(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
fn metadata.withFinalizersMixin
withFinalizersMixin(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
Note: This function appends passed data to existing values
fn metadata.withGenerateName
withGenerateName(generateName)
"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"
fn metadata.withGeneration
withGeneration(generation)
"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."
fn metadata.withLabels
withLabels(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
fn metadata.withLabelsMixin
withLabelsMixin(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
Note: This function appends passed data to existing values
fn metadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
fn metadata.withNamespace
withNamespace(namespace)
"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"
fn metadata.withOwnerReferences
withOwnerReferences(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
fn metadata.withOwnerReferencesMixin
withOwnerReferencesMixin(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
Note: This function appends passed data to existing values
fn metadata.withResourceVersion
withResourceVersion(resourceVersion)
"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"
fn metadata.withSelfLink
withSelfLink(selfLink)
"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."
fn metadata.withUid
withUid(uid)
"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"
obj spec
"VMClusterSpec defines the desired state of VMCluster"
fn spec.withClusterDomainName
withClusterDomainName(clusterDomainName)
"ClusterDomainName defines domain name suffix for in-cluster dns addresses\naka .cluster.local\nused by vminsert and vmselect to build vmstorage address"
fn spec.withClusterVersion
withClusterVersion(clusterVersion)
"ClusterVersion defines default images tag for all components.\nit can be overwritten with component specific image.tag value."
fn spec.withImagePullSecrets
withImagePullSecrets(imagePullSecrets)
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
fn spec.withImagePullSecretsMixin
withImagePullSecretsMixin(imagePullSecrets)
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
Note: This function appends passed data to existing values
fn spec.withPaused
withPaused(paused)
"Paused If set to true all actions on the underlying managed objects are not\ngoing to be performed, except for delete actions."
fn spec.withReplicationFactor
withReplicationFactor(replicationFactor)
"ReplicationFactor defines how many copies of data make among\ndistinct storage nodes"
fn spec.withRetentionPeriod
withRetentionPeriod(retentionPeriod)
"RetentionPeriod for the stored metrics\nNote VictoriaMetrics has data/ and indexdb/ folders\nmetrics from data/ removed eventually as soon as partition leaves retention period\nreverse index data at indexdb rotates once at the half of configured\nretention period"
fn spec.withServiceAccountName
withServiceAccountName(serviceAccountName)
"ServiceAccountName is the name of the ServiceAccount to use to run the\nVMSelect, VMStorage and VMInsert Pods."
fn spec.withUseStrictSecurity
withUseStrictSecurity(useStrictSecurity)
"UseStrictSecurity enables strict security mode for component\nit restricts disk writes access\nuses non-root user out of the box\ndrops not needed security permissions"
obj spec.imagePullSecrets
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
fn spec.imagePullSecrets.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
obj spec.license
"License allows to configure license key to be used for enterprise features.\nUsing license key is supported starting from VictoriaMetrics v1.94.0.\nSee here"
fn spec.license.withKey
withKey(key)
"Enterprise license key. This flag is available only in VictoriaMetrics enterprise.\nTo request a trial license, go to"
obj spec.license.keyRef
"KeyRef is reference to secret with license key for enterprise features."
fn spec.license.keyRef.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.license.keyRef.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.license.keyRef.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.vminsert
fn spec.vminsert.withAffinity
withAffinity(affinity)
"Affinity If specified, the pod's scheduling constraints."
fn spec.vminsert.withAffinityMixin
withAffinityMixin(affinity)
"Affinity If specified, the pod's scheduling constraints."
Note: This function appends passed data to existing values
fn spec.vminsert.withClusterNativeListenPort
withClusterNativeListenPort(clusterNativeListenPort)
"ClusterNativePort for multi-level cluster setup.\nMore details"
fn spec.vminsert.withConfigMaps
withConfigMaps(configMaps)
"ConfigMaps is a list of ConfigMaps in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/configs/CONFIGMAP_NAME folder"
fn spec.vminsert.withConfigMapsMixin
withConfigMapsMixin(configMaps)
"ConfigMaps is a list of ConfigMaps in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/configs/CONFIGMAP_NAME folder"
Note: This function appends passed data to existing values
fn spec.vminsert.withContainers
withContainers(containers)
"Containers property allows to inject additions sidecars or to patch existing containers.\nIt can be useful for proxies, backup, etc."
fn spec.vminsert.withContainersMixin
withContainersMixin(containers)
"Containers property allows to inject additions sidecars or to patch existing containers.\nIt can be useful for proxies, backup, etc."
Note: This function appends passed data to existing values
fn spec.vminsert.withDisableSelfServiceScrape
withDisableSelfServiceScrape(disableSelfServiceScrape)
"DisableSelfServiceScrape controls creation of VMServiceScrape by operator\nfor the application.\nHas priority over VM_DISABLESELFSERVICESCRAPECREATION
operator env variable"
fn spec.vminsert.withDnsPolicy
withDnsPolicy(dnsPolicy)
"DNSPolicy sets DNS policy for the pod"
fn spec.vminsert.withExtraArgs
withExtraArgs(extraArgs)
"ExtraArgs that will be passed to the application container\nfor example remoteWrite.tmpDataPath: /tmp"
fn spec.vminsert.withExtraArgsMixin
withExtraArgsMixin(extraArgs)
"ExtraArgs that will be passed to the application container\nfor example remoteWrite.tmpDataPath: /tmp"
Note: This function appends passed data to existing values
fn spec.vminsert.withExtraEnvs
withExtraEnvs(extraEnvs)
"ExtraEnvs that will be passed to the application container"
fn spec.vminsert.withExtraEnvsMixin
withExtraEnvsMixin(extraEnvs)
"ExtraEnvs that will be passed to the application container"
Note: This function appends passed data to existing values
fn spec.vminsert.withHostAliases
withHostAliases(hostAliases)
"HostAliases provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork."
fn spec.vminsert.withHostAliasesMixin
withHostAliasesMixin(hostAliases)
"HostAliases provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork."
Note: This function appends passed data to existing values
fn spec.vminsert.withHostNetwork
withHostNetwork(hostNetwork)
"HostNetwork controls whether the pod may use the node network namespace"
fn spec.vminsert.withHost_aliases
withHost_aliases(host_aliases)
"HostAliasesUnderScore provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork.\nHas Priority over hostAliases field"
fn spec.vminsert.withHost_aliasesMixin
withHost_aliasesMixin(host_aliases)
"HostAliasesUnderScore provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork.\nHas Priority over hostAliases field"
Note: This function appends passed data to existing values
fn spec.vminsert.withHpa
withHpa(hpa)
"HPA defines kubernetes PodAutoScaling configuration version 2."
fn spec.vminsert.withHpaMixin
withHpaMixin(hpa)
"HPA defines kubernetes PodAutoScaling configuration version 2."
Note: This function appends passed data to existing values
fn spec.vminsert.withImagePullSecrets
withImagePullSecrets(imagePullSecrets)
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
fn spec.vminsert.withImagePullSecretsMixin
withImagePullSecretsMixin(imagePullSecrets)
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
Note: This function appends passed data to existing values
fn spec.vminsert.withInitContainers
withInitContainers(initContainers)
"InitContainers allows adding initContainers to the pod definition.\nAny errors during the execution of an initContainer will lead to a restart of the Pod.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"
fn spec.vminsert.withInitContainersMixin
withInitContainersMixin(initContainers)
"InitContainers allows adding initContainers to the pod definition.\nAny errors during the execution of an initContainer will lead to a restart of the Pod.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"
Note: This function appends passed data to existing values
fn spec.vminsert.withLivenessProbe
withLivenessProbe(livenessProbe)
"LivenessProbe that will be added CRD pod"
fn spec.vminsert.withLivenessProbeMixin
withLivenessProbeMixin(livenessProbe)
"LivenessProbe that will be added CRD pod"
Note: This function appends passed data to existing values
fn spec.vminsert.withLogFormat
withLogFormat(logFormat)
"LogFormat for VMInsert to be configured with.\ndefault or json"
fn spec.vminsert.withLogLevel
withLogLevel(logLevel)
"LogLevel for VMInsert to be configured with."
fn spec.vminsert.withMinReadySeconds
withMinReadySeconds(minReadySeconds)
"MinReadySeconds defines a minim number os seconds to wait before starting update next pod\nif previous in healthy state\nHas no effect for VLogs and VMSingle"
fn spec.vminsert.withNodeSelector
withNodeSelector(nodeSelector)
"NodeSelector Define which Nodes the Pods are scheduled on."
fn spec.vminsert.withNodeSelectorMixin
withNodeSelectorMixin(nodeSelector)
"NodeSelector Define which Nodes the Pods are scheduled on."
Note: This function appends passed data to existing values
fn spec.vminsert.withPaused
withPaused(paused)
"Paused If set to true all actions on the underlying managed objects are not\ngoing to be performed, except for delete actions."
fn spec.vminsert.withPort
withPort(port)
"Port listen address"
fn spec.vminsert.withPriorityClassName
withPriorityClassName(priorityClassName)
"PriorityClassName class assigned to the Pods"
fn spec.vminsert.withReadinessGates
withReadinessGates(readinessGates)
"ReadinessGates defines pod readiness gates"
fn spec.vminsert.withReadinessGatesMixin
withReadinessGatesMixin(readinessGates)
"ReadinessGates defines pod readiness gates"
Note: This function appends passed data to existing values
fn spec.vminsert.withReadinessProbe
withReadinessProbe(readinessProbe)
"ReadinessProbe that will be added CRD pod"
fn spec.vminsert.withReadinessProbeMixin
withReadinessProbeMixin(readinessProbe)
"ReadinessProbe that will be added CRD pod"
Note: This function appends passed data to existing values
fn spec.vminsert.withReplicaCount
withReplicaCount(replicaCount)
"ReplicaCount is the expected size of the Application."
fn spec.vminsert.withRevisionHistoryLimitCount
withRevisionHistoryLimitCount(revisionHistoryLimitCount)
"The number of old ReplicaSets to retain to allow rollback in deployment or\nmaximum number of revisions that will be maintained in the Deployment revision history.\nHas no effect at StatefulSets\nDefaults to 10."
fn spec.vminsert.withRuntimeClassName
withRuntimeClassName(runtimeClassName)
"RuntimeClassName - defines runtime class for kubernetes pod.\nhttps://kubernetes.io/docs/concepts/containers/runtime-class/"
fn spec.vminsert.withSchedulerName
withSchedulerName(schedulerName)
"SchedulerName - defines kubernetes scheduler name"
fn spec.vminsert.withSecrets
withSecrets(secrets)
"Secrets is a list of Secrets in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/secrets/SECRET_NAME folder"
fn spec.vminsert.withSecretsMixin
withSecretsMixin(secrets)
"Secrets is a list of Secrets in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/secrets/SECRET_NAME folder"
Note: This function appends passed data to existing values
fn spec.vminsert.withSecurityContext
withSecurityContext(securityContext)
"SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext."
fn spec.vminsert.withSecurityContextMixin
withSecurityContextMixin(securityContext)
"SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext."
Note: This function appends passed data to existing values
fn spec.vminsert.withServiceScrapeSpec
withServiceScrapeSpec(serviceScrapeSpec)
"ServiceScrapeSpec that will be added to vminsert VMServiceScrape spec"
fn spec.vminsert.withServiceScrapeSpecMixin
withServiceScrapeSpecMixin(serviceScrapeSpec)
"ServiceScrapeSpec that will be added to vminsert VMServiceScrape spec"
Note: This function appends passed data to existing values
fn spec.vminsert.withStartupProbe
withStartupProbe(startupProbe)
"StartupProbe that will be added to CRD pod"
fn spec.vminsert.withStartupProbeMixin
withStartupProbeMixin(startupProbe)
"StartupProbe that will be added to CRD pod"
Note: This function appends passed data to existing values
fn spec.vminsert.withTerminationGracePeriodSeconds
withTerminationGracePeriodSeconds(terminationGracePeriodSeconds)
"TerminationGracePeriodSeconds period for container graceful termination"
fn spec.vminsert.withTolerations
withTolerations(tolerations)
"Tolerations If specified, the pod's tolerations."
fn spec.vminsert.withTolerationsMixin
withTolerationsMixin(tolerations)
"Tolerations If specified, the pod's tolerations."
Note: This function appends passed data to existing values
fn spec.vminsert.withTopologySpreadConstraints
withTopologySpreadConstraints(topologySpreadConstraints)
"TopologySpreadConstraints embedded kubernetes pod configuration option,\ncontrols how pods are spread across your cluster among failure-domains\nsuch as regions, zones, nodes, and other user-defined topology domains\nhttps://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/"
fn spec.vminsert.withTopologySpreadConstraintsMixin
withTopologySpreadConstraintsMixin(topologySpreadConstraints)
"TopologySpreadConstraints embedded kubernetes pod configuration option,\ncontrols how pods are spread across your cluster among failure-domains\nsuch as regions, zones, nodes, and other user-defined topology domains\nhttps://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/"
Note: This function appends passed data to existing values
fn spec.vminsert.withUpdateStrategy
withUpdateStrategy(updateStrategy)
"UpdateStrategy - overrides default update strategy."
fn spec.vminsert.withUseDefaultResources
withUseDefaultResources(useDefaultResources)
"UseDefaultResources controls resource settings\nBy default, operator sets built-in resource requirements"
fn spec.vminsert.withUseStrictSecurity
withUseStrictSecurity(useStrictSecurity)
"UseStrictSecurity enables strict security mode for component\nit restricts disk writes access\nuses non-root user out of the box\ndrops not needed security permissions"
fn spec.vminsert.withVolumeMounts
withVolumeMounts(volumeMounts)
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment/StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the Application container"
fn spec.vminsert.withVolumeMountsMixin
withVolumeMountsMixin(volumeMounts)
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment/StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the Application container"
Note: This function appends passed data to existing values
fn spec.vminsert.withVolumes
withVolumes(volumes)
"Volumes allows configuration of additional volumes on the output Deployment/StatefulSet definition.\nVolumes specified will be appended to other volumes that are generated.\n/ +optional"
fn spec.vminsert.withVolumesMixin
withVolumesMixin(volumes)
"Volumes allows configuration of additional volumes on the output Deployment/StatefulSet definition.\nVolumes specified will be appended to other volumes that are generated.\n/ +optional"
Note: This function appends passed data to existing values
obj spec.vminsert.dnsConfig
"Specifies the DNS parameters of a pod.\nParameters specified here will be merged to the generated DNS\nconfiguration based on DNSPolicy."
fn spec.vminsert.dnsConfig.withNameservers
withNameservers(nameservers)
"A list of DNS name server IP addresses.\nThis will be appended to the base nameservers generated from DNSPolicy.\nDuplicated nameservers will be removed."
fn spec.vminsert.dnsConfig.withNameserversMixin
withNameserversMixin(nameservers)
"A list of DNS name server IP addresses.\nThis will be appended to the base nameservers generated from DNSPolicy.\nDuplicated nameservers will be removed."
Note: This function appends passed data to existing values
fn spec.vminsert.dnsConfig.withOptions
withOptions(options)
"A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy."
fn spec.vminsert.dnsConfig.withOptionsMixin
withOptionsMixin(options)
"A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy."
Note: This function appends passed data to existing values
fn spec.vminsert.dnsConfig.withSearches
withSearches(searches)
"A list of DNS search domains for host-name lookup.\nThis will be appended to the base search paths generated from DNSPolicy.\nDuplicated search paths will be removed."
fn spec.vminsert.dnsConfig.withSearchesMixin
withSearchesMixin(searches)
"A list of DNS search domains for host-name lookup.\nThis will be appended to the base search paths generated from DNSPolicy.\nDuplicated search paths will be removed."
Note: This function appends passed data to existing values
obj spec.vminsert.dnsConfig.options
"A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy."
fn spec.vminsert.dnsConfig.options.withName
withName(name)
"Required."
fn spec.vminsert.dnsConfig.options.withValue
withValue(value)
obj spec.vminsert.extraEnvs
"ExtraEnvs that will be passed to the application container"
fn spec.vminsert.extraEnvs.withName
withName(name)
"Name of the environment variable. Must be a C_IDENTIFIER."
fn spec.vminsert.extraEnvs.withValue
withValue(value)
"Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\"."
obj spec.vminsert.hostAliases
"HostAliases provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork."
fn spec.vminsert.hostAliases.withHostnames
withHostnames(hostnames)
"Hostnames for the above IP address."
fn spec.vminsert.hostAliases.withHostnamesMixin
withHostnamesMixin(hostnames)
"Hostnames for the above IP address."
Note: This function appends passed data to existing values
fn spec.vminsert.hostAliases.withIp
withIp(ip)
"IP address of the host file entry."
obj spec.vminsert.host_aliases
"HostAliasesUnderScore provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork.\nHas Priority over hostAliases field"
fn spec.vminsert.host_aliases.withHostnames
withHostnames(hostnames)
"Hostnames for the above IP address."
fn spec.vminsert.host_aliases.withHostnamesMixin
withHostnamesMixin(hostnames)
"Hostnames for the above IP address."
Note: This function appends passed data to existing values
fn spec.vminsert.host_aliases.withIp
withIp(ip)
"IP address of the host file entry."
obj spec.vminsert.image
"Image - docker image settings\nif no specified operator uses default version from operator config"
fn spec.vminsert.image.withPullPolicy
withPullPolicy(pullPolicy)
"PullPolicy describes how to pull docker image"
fn spec.vminsert.image.withRepository
withRepository(repository)
"Repository contains name of docker image + it's repository if needed"
fn spec.vminsert.image.withTag
withTag(tag)
"Tag contains desired docker image version"
obj spec.vminsert.imagePullSecrets
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
fn spec.vminsert.imagePullSecrets.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
obj spec.vminsert.insertPorts
"InsertPorts - additional listen ports for data ingestion."
fn spec.vminsert.insertPorts.withGraphitePort
withGraphitePort(graphitePort)
"GraphitePort listen port"
fn spec.vminsert.insertPorts.withInfluxPort
withInfluxPort(influxPort)
"InfluxPort listen port"
fn spec.vminsert.insertPorts.withOpenTSDBHTTPPort
withOpenTSDBHTTPPort(openTSDBHTTPPort)
"OpenTSDBHTTPPort for http connections."
fn spec.vminsert.insertPorts.withOpenTSDBPort
withOpenTSDBPort(openTSDBPort)
"OpenTSDBPort for tcp and udp listen"
obj spec.vminsert.podDisruptionBudget
"PodDisruptionBudget created by operator"
fn spec.vminsert.podDisruptionBudget.withMaxUnavailable
withMaxUnavailable(maxUnavailable)
"An eviction is allowed if at most \"maxUnavailable\" pods selected by\n\"selector\" are unavailable after the eviction, i.e. even in absence of\nthe evicted pod. For example, one can prevent all voluntary evictions\nby specifying 0. This is a mutually exclusive setting with \"minAvailable\"."
fn spec.vminsert.podDisruptionBudget.withMinAvailable
withMinAvailable(minAvailable)
"An eviction is allowed if at least \"minAvailable\" pods selected by\n\"selector\" will still be available after the eviction, i.e. even in the\nabsence of the evicted pod. So for example you can prevent all voluntary\nevictions by specifying \"100%\"."
fn spec.vminsert.podDisruptionBudget.withSelectorLabels
withSelectorLabels(selectorLabels)
"replaces default labels selector generated by operator\nit's useful when you need to create custom budget"
fn spec.vminsert.podDisruptionBudget.withSelectorLabelsMixin
withSelectorLabelsMixin(selectorLabels)
"replaces default labels selector generated by operator\nit's useful when you need to create custom budget"
Note: This function appends passed data to existing values
obj spec.vminsert.podMetadata
"PodMetadata configures Labels and Annotations which are propagated to the VMInsert pods."
fn spec.vminsert.podMetadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
fn spec.vminsert.podMetadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
Note: This function appends passed data to existing values
fn spec.vminsert.podMetadata.withLabels
withLabels(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
fn spec.vminsert.podMetadata.withLabelsMixin
withLabelsMixin(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
Note: This function appends passed data to existing values
fn spec.vminsert.podMetadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"
obj spec.vminsert.readinessGates
"ReadinessGates defines pod readiness gates"
fn spec.vminsert.readinessGates.withConditionType
withConditionType(conditionType)
"ConditionType refers to a condition in the pod's condition list with matching type."
obj spec.vminsert.resources
"Resources container resource request and limits, https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\nif not defined default resources from operator config will be used"
fn spec.vminsert.resources.withClaims
withClaims(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
fn spec.vminsert.resources.withClaimsMixin
withClaimsMixin(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
Note: This function appends passed data to existing values
fn spec.vminsert.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vminsert.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.vminsert.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vminsert.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.vminsert.resources.claims
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
fn spec.vminsert.resources.claims.withName
withName(name)
"Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container."
obj spec.vminsert.rollingUpdate
"RollingUpdate - overrides deployment update params."
fn spec.vminsert.rollingUpdate.withMaxSurge
withMaxSurge(maxSurge)
"The maximum number of pods that can be scheduled above the desired number of\npods.\nValue can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).\nThis can not be 0 if MaxUnavailable is 0.\nAbsolute number is calculated from percentage by rounding up.\nDefaults to 25%.\nExample: when this is set to 30%, the new ReplicaSet can be scaled up immediately when\nthe rolling update starts, such that the total number of old and new pods do not exceed\n130% of desired pods. Once old pods have been killed,\nnew ReplicaSet can be scaled up further, ensuring that total number of pods running\nat any time during the update is at most 130% of desired pods."
fn spec.vminsert.rollingUpdate.withMaxUnavailable
withMaxUnavailable(maxUnavailable)
"The maximum number of pods that can be unavailable during the update.\nValue can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).\nAbsolute number is calculated from percentage by rounding down.\nThis can not be 0 if MaxSurge is 0.\nDefaults to 25%.\nExample: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods\nimmediately when the rolling update starts. Once new pods are ready, old ReplicaSet\ncan be scaled down further, followed by scaling up the new ReplicaSet, ensuring\nthat the total number of pods available at all times during the update is at\nleast 70% of desired pods."
obj spec.vminsert.serviceSpec
"ServiceSpec that will be added to vminsert service spec"
fn spec.vminsert.serviceSpec.withSpec
withSpec(spec)
"ServiceSpec describes the attributes that a user creates on a service.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/"
fn spec.vminsert.serviceSpec.withSpecMixin
withSpecMixin(spec)
"ServiceSpec describes the attributes that a user creates on a service.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/"
Note: This function appends passed data to existing values
fn spec.vminsert.serviceSpec.withUseAsDefault
withUseAsDefault(useAsDefault)
"UseAsDefault applies changes from given service definition to the main object Service\nChanging from headless service to clusterIP or loadbalancer may break cross-component communication"
obj spec.vminsert.serviceSpec.metadata
"EmbeddedObjectMetadata defines objectMeta for additional service."
fn spec.vminsert.serviceSpec.metadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
fn spec.vminsert.serviceSpec.metadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
Note: This function appends passed data to existing values
fn spec.vminsert.serviceSpec.metadata.withLabels
withLabels(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
fn spec.vminsert.serviceSpec.metadata.withLabelsMixin
withLabelsMixin(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
Note: This function appends passed data to existing values
fn spec.vminsert.serviceSpec.metadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"
obj spec.vminsert.tolerations
"Tolerations If specified, the pod's tolerations."
fn spec.vminsert.tolerations.withEffect
withEffect(effect)
"Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute."
fn spec.vminsert.tolerations.withKey
withKey(key)
"Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys."
fn spec.vminsert.tolerations.withOperator
withOperator(operator)
"Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category."
fn spec.vminsert.tolerations.withTolerationSeconds
withTolerationSeconds(tolerationSeconds)
"TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system."
fn spec.vminsert.tolerations.withValue
withValue(value)
"Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string."
obj spec.vminsert.volumeMounts
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment/StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the Application container"
fn spec.vminsert.volumeMounts.withMountPath
withMountPath(mountPath)
"Path within the container at which the volume should be mounted. Must\nnot contain ':'."
fn spec.vminsert.volumeMounts.withMountPropagation
withMountPropagation(mountPropagation)
"mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None)."
fn spec.vminsert.volumeMounts.withName
withName(name)
"This must match the Name of a Volume."
fn spec.vminsert.volumeMounts.withReadOnly
withReadOnly(readOnly)
"Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false."
fn spec.vminsert.volumeMounts.withRecursiveReadOnly
withRecursiveReadOnly(recursiveReadOnly)
"RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\n\nIf this field is not specified, it is treated as an equivalent of Disabled."
fn spec.vminsert.volumeMounts.withSubPath
withSubPath(subPath)
"Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root)."
fn spec.vminsert.volumeMounts.withSubPathExpr
withSubPathExpr(subPathExpr)
"Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive."
obj spec.vmselect
fn spec.vmselect.withAffinity
withAffinity(affinity)
"Affinity If specified, the pod's scheduling constraints."
fn spec.vmselect.withAffinityMixin
withAffinityMixin(affinity)
"Affinity If specified, the pod's scheduling constraints."
Note: This function appends passed data to existing values
fn spec.vmselect.withCacheMountPath
withCacheMountPath(cacheMountPath)
"CacheMountPath allows to add cache persistent for VMSelect,\nwill use \"/cache\" as default if not specified."
fn spec.vmselect.withClaimTemplates
withClaimTemplates(claimTemplates)
"ClaimTemplates allows adding additional VolumeClaimTemplates for StatefulSet"
fn spec.vmselect.withClaimTemplatesMixin
withClaimTemplatesMixin(claimTemplates)
"ClaimTemplates allows adding additional VolumeClaimTemplates for StatefulSet"
Note: This function appends passed data to existing values
fn spec.vmselect.withClusterNativeListenPort
withClusterNativeListenPort(clusterNativeListenPort)
"ClusterNativePort for multi-level cluster setup.\nMore details"
fn spec.vmselect.withConfigMaps
withConfigMaps(configMaps)
"ConfigMaps is a list of ConfigMaps in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/configs/CONFIGMAP_NAME folder"
fn spec.vmselect.withConfigMapsMixin
withConfigMapsMixin(configMaps)
"ConfigMaps is a list of ConfigMaps in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/configs/CONFIGMAP_NAME folder"
Note: This function appends passed data to existing values
fn spec.vmselect.withContainers
withContainers(containers)
"Containers property allows to inject additions sidecars or to patch existing containers.\nIt can be useful for proxies, backup, etc."
fn spec.vmselect.withContainersMixin
withContainersMixin(containers)
"Containers property allows to inject additions sidecars or to patch existing containers.\nIt can be useful for proxies, backup, etc."
Note: This function appends passed data to existing values
fn spec.vmselect.withDisableSelfServiceScrape
withDisableSelfServiceScrape(disableSelfServiceScrape)
"DisableSelfServiceScrape controls creation of VMServiceScrape by operator\nfor the application.\nHas priority over VM_DISABLESELFSERVICESCRAPECREATION
operator env variable"
fn spec.vmselect.withDnsPolicy
withDnsPolicy(dnsPolicy)
"DNSPolicy sets DNS policy for the pod"
fn spec.vmselect.withExtraArgs
withExtraArgs(extraArgs)
"ExtraArgs that will be passed to the application container\nfor example remoteWrite.tmpDataPath: /tmp"
fn spec.vmselect.withExtraArgsMixin
withExtraArgsMixin(extraArgs)
"ExtraArgs that will be passed to the application container\nfor example remoteWrite.tmpDataPath: /tmp"
Note: This function appends passed data to existing values
fn spec.vmselect.withExtraEnvs
withExtraEnvs(extraEnvs)
"ExtraEnvs that will be passed to the application container"
fn spec.vmselect.withExtraEnvsMixin
withExtraEnvsMixin(extraEnvs)
"ExtraEnvs that will be passed to the application container"
Note: This function appends passed data to existing values
fn spec.vmselect.withHostAliases
withHostAliases(hostAliases)
"HostAliases provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork."
fn spec.vmselect.withHostAliasesMixin
withHostAliasesMixin(hostAliases)
"HostAliases provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork."
Note: This function appends passed data to existing values
fn spec.vmselect.withHostNetwork
withHostNetwork(hostNetwork)
"HostNetwork controls whether the pod may use the node network namespace"
fn spec.vmselect.withHost_aliases
withHost_aliases(host_aliases)
"HostAliasesUnderScore provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork.\nHas Priority over hostAliases field"
fn spec.vmselect.withHost_aliasesMixin
withHost_aliasesMixin(host_aliases)
"HostAliasesUnderScore provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork.\nHas Priority over hostAliases field"
Note: This function appends passed data to existing values
fn spec.vmselect.withHpa
withHpa(hpa)
"Configures horizontal pod autoscaling.\nNote, enabling this option disables vmselect to vmselect communication. In most cases it's not an issue."
fn spec.vmselect.withHpaMixin
withHpaMixin(hpa)
"Configures horizontal pod autoscaling.\nNote, enabling this option disables vmselect to vmselect communication. In most cases it's not an issue."
Note: This function appends passed data to existing values
fn spec.vmselect.withImagePullSecrets
withImagePullSecrets(imagePullSecrets)
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
fn spec.vmselect.withImagePullSecretsMixin
withImagePullSecretsMixin(imagePullSecrets)
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
Note: This function appends passed data to existing values
fn spec.vmselect.withInitContainers
withInitContainers(initContainers)
"InitContainers allows adding initContainers to the pod definition.\nAny errors during the execution of an initContainer will lead to a restart of the Pod.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"
fn spec.vmselect.withInitContainersMixin
withInitContainersMixin(initContainers)
"InitContainers allows adding initContainers to the pod definition.\nAny errors during the execution of an initContainer will lead to a restart of the Pod.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"
Note: This function appends passed data to existing values
fn spec.vmselect.withLivenessProbe
withLivenessProbe(livenessProbe)
"LivenessProbe that will be added CRD pod"
fn spec.vmselect.withLivenessProbeMixin
withLivenessProbeMixin(livenessProbe)
"LivenessProbe that will be added CRD pod"
Note: This function appends passed data to existing values
fn spec.vmselect.withLogFormat
withLogFormat(logFormat)
"LogFormat for VMSelect to be configured with.\ndefault or json"
fn spec.vmselect.withLogLevel
withLogLevel(logLevel)
"LogLevel for VMSelect to be configured with."
fn spec.vmselect.withMinReadySeconds
withMinReadySeconds(minReadySeconds)
"MinReadySeconds defines a minim number os seconds to wait before starting update next pod\nif previous in healthy state\nHas no effect for VLogs and VMSingle"
fn spec.vmselect.withNodeSelector
withNodeSelector(nodeSelector)
"NodeSelector Define which Nodes the Pods are scheduled on."
fn spec.vmselect.withNodeSelectorMixin
withNodeSelectorMixin(nodeSelector)
"NodeSelector Define which Nodes the Pods are scheduled on."
Note: This function appends passed data to existing values
fn spec.vmselect.withPaused
withPaused(paused)
"Paused If set to true all actions on the underlying managed objects are not\ngoing to be performed, except for delete actions."
fn spec.vmselect.withPort
withPort(port)
"Port listen address"
fn spec.vmselect.withPriorityClassName
withPriorityClassName(priorityClassName)
"PriorityClassName class assigned to the Pods"
fn spec.vmselect.withReadinessGates
withReadinessGates(readinessGates)
"ReadinessGates defines pod readiness gates"
fn spec.vmselect.withReadinessGatesMixin
withReadinessGatesMixin(readinessGates)
"ReadinessGates defines pod readiness gates"
Note: This function appends passed data to existing values
fn spec.vmselect.withReadinessProbe
withReadinessProbe(readinessProbe)
"ReadinessProbe that will be added CRD pod"
fn spec.vmselect.withReadinessProbeMixin
withReadinessProbeMixin(readinessProbe)
"ReadinessProbe that will be added CRD pod"
Note: This function appends passed data to existing values
fn spec.vmselect.withReplicaCount
withReplicaCount(replicaCount)
"ReplicaCount is the expected size of the Application."
fn spec.vmselect.withRevisionHistoryLimitCount
withRevisionHistoryLimitCount(revisionHistoryLimitCount)
"The number of old ReplicaSets to retain to allow rollback in deployment or\nmaximum number of revisions that will be maintained in the Deployment revision history.\nHas no effect at StatefulSets\nDefaults to 10."
fn spec.vmselect.withRollingUpdateStrategy
withRollingUpdateStrategy(rollingUpdateStrategy)
"RollingUpdateStrategy defines strategy for application updates\nDefault is OnDelete, in this case operator handles update process\nCan be changed for RollingUpdate"
fn spec.vmselect.withRuntimeClassName
withRuntimeClassName(runtimeClassName)
"RuntimeClassName - defines runtime class for kubernetes pod.\nhttps://kubernetes.io/docs/concepts/containers/runtime-class/"
fn spec.vmselect.withSchedulerName
withSchedulerName(schedulerName)
"SchedulerName - defines kubernetes scheduler name"
fn spec.vmselect.withSecrets
withSecrets(secrets)
"Secrets is a list of Secrets in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/secrets/SECRET_NAME folder"
fn spec.vmselect.withSecretsMixin
withSecretsMixin(secrets)
"Secrets is a list of Secrets in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/secrets/SECRET_NAME folder"
Note: This function appends passed data to existing values
fn spec.vmselect.withSecurityContext
withSecurityContext(securityContext)
"SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext."
fn spec.vmselect.withSecurityContextMixin
withSecurityContextMixin(securityContext)
"SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext."
Note: This function appends passed data to existing values
fn spec.vmselect.withServiceScrapeSpec
withServiceScrapeSpec(serviceScrapeSpec)
"ServiceScrapeSpec that will be added to vmselect VMServiceScrape spec"
fn spec.vmselect.withServiceScrapeSpecMixin
withServiceScrapeSpecMixin(serviceScrapeSpec)
"ServiceScrapeSpec that will be added to vmselect VMServiceScrape spec"
Note: This function appends passed data to existing values
fn spec.vmselect.withStartupProbe
withStartupProbe(startupProbe)
"StartupProbe that will be added to CRD pod"
fn spec.vmselect.withStartupProbeMixin
withStartupProbeMixin(startupProbe)
"StartupProbe that will be added to CRD pod"
Note: This function appends passed data to existing values
fn spec.vmselect.withTerminationGracePeriodSeconds
withTerminationGracePeriodSeconds(terminationGracePeriodSeconds)
"TerminationGracePeriodSeconds period for container graceful termination"
fn spec.vmselect.withTolerations
withTolerations(tolerations)
"Tolerations If specified, the pod's tolerations."
fn spec.vmselect.withTolerationsMixin
withTolerationsMixin(tolerations)
"Tolerations If specified, the pod's tolerations."
Note: This function appends passed data to existing values
fn spec.vmselect.withTopologySpreadConstraints
withTopologySpreadConstraints(topologySpreadConstraints)
"TopologySpreadConstraints embedded kubernetes pod configuration option,\ncontrols how pods are spread across your cluster among failure-domains\nsuch as regions, zones, nodes, and other user-defined topology domains\nhttps://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/"
fn spec.vmselect.withTopologySpreadConstraintsMixin
withTopologySpreadConstraintsMixin(topologySpreadConstraints)
"TopologySpreadConstraints embedded kubernetes pod configuration option,\ncontrols how pods are spread across your cluster among failure-domains\nsuch as regions, zones, nodes, and other user-defined topology domains\nhttps://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/"
Note: This function appends passed data to existing values
fn spec.vmselect.withUseDefaultResources
withUseDefaultResources(useDefaultResources)
"UseDefaultResources controls resource settings\nBy default, operator sets built-in resource requirements"
fn spec.vmselect.withUseStrictSecurity
withUseStrictSecurity(useStrictSecurity)
"UseStrictSecurity enables strict security mode for component\nit restricts disk writes access\nuses non-root user out of the box\ndrops not needed security permissions"
fn spec.vmselect.withVolumeMounts
withVolumeMounts(volumeMounts)
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment/StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the Application container"
fn spec.vmselect.withVolumeMountsMixin
withVolumeMountsMixin(volumeMounts)
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment/StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the Application container"
Note: This function appends passed data to existing values
fn spec.vmselect.withVolumes
withVolumes(volumes)
"Volumes allows configuration of additional volumes on the output Deployment/StatefulSet definition.\nVolumes specified will be appended to other volumes that are generated.\n/ +optional"
fn spec.vmselect.withVolumesMixin
withVolumesMixin(volumes)
"Volumes allows configuration of additional volumes on the output Deployment/StatefulSet definition.\nVolumes specified will be appended to other volumes that are generated.\n/ +optional"
Note: This function appends passed data to existing values
obj spec.vmselect.claimTemplates
"ClaimTemplates allows adding additional VolumeClaimTemplates for StatefulSet"
fn spec.vmselect.claimTemplates.withApiVersion
withApiVersion(apiVersion)
"APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
fn spec.vmselect.claimTemplates.withKind
withKind(kind)
"Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
fn spec.vmselect.claimTemplates.withMetadata
withMetadata(metadata)
"Standard object's metadata.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
fn spec.vmselect.claimTemplates.withMetadataMixin
withMetadataMixin(metadata)
"Standard object's metadata.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
Note: This function appends passed data to existing values
obj spec.vmselect.claimTemplates.spec
"spec defines the desired characteristics of a volume requested by a pod author.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"
fn spec.vmselect.claimTemplates.spec.withAccessModes
withAccessModes(accessModes)
"accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"
fn spec.vmselect.claimTemplates.spec.withAccessModesMixin
withAccessModesMixin(accessModes)
"accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"
Note: This function appends passed data to existing values
fn spec.vmselect.claimTemplates.spec.withStorageClassName
withStorageClassName(storageClassName)
"storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"
fn spec.vmselect.claimTemplates.spec.withVolumeAttributesClassName
withVolumeAttributesClassName(volumeAttributesClassName)
"volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled."
fn spec.vmselect.claimTemplates.spec.withVolumeMode
withVolumeMode(volumeMode)
"volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec."
fn spec.vmselect.claimTemplates.spec.withVolumeName
withVolumeName(volumeName)
"volumeName is the binding reference to the PersistentVolume backing this claim."
obj spec.vmselect.claimTemplates.spec.dataSource
"dataSource field can be used to specify either:\n An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource."
fn spec.vmselect.claimTemplates.spec.dataSource.withApiGroup
withApiGroup(apiGroup)
"APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required."
fn spec.vmselect.claimTemplates.spec.dataSource.withKind
withKind(kind)
"Kind is the type of resource being referenced"
fn spec.vmselect.claimTemplates.spec.dataSource.withName
withName(name)
"Name is the name of resource being referenced"
obj spec.vmselect.claimTemplates.spec.dataSourceRef
"dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
fn spec.vmselect.claimTemplates.spec.dataSourceRef.withApiGroup
withApiGroup(apiGroup)
"APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required."
fn spec.vmselect.claimTemplates.spec.dataSourceRef.withKind
withKind(kind)
"Kind is the type of resource being referenced"
fn spec.vmselect.claimTemplates.spec.dataSourceRef.withName
withName(name)
"Name is the name of resource being referenced"
fn spec.vmselect.claimTemplates.spec.dataSourceRef.withNamespace
withNamespace(namespace)
"Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
obj spec.vmselect.claimTemplates.spec.resources
"resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources"
fn spec.vmselect.claimTemplates.spec.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmselect.claimTemplates.spec.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.vmselect.claimTemplates.spec.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmselect.claimTemplates.spec.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.vmselect.claimTemplates.spec.selector
"selector is a label query over volumes to consider for binding."
fn spec.vmselect.claimTemplates.spec.selector.withMatchExpressions
withMatchExpressions(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.vmselect.claimTemplates.spec.selector.withMatchExpressionsMixin
withMatchExpressionsMixin(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
Note: This function appends passed data to existing values
fn spec.vmselect.claimTemplates.spec.selector.withMatchLabels
withMatchLabels(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
fn spec.vmselect.claimTemplates.spec.selector.withMatchLabelsMixin
withMatchLabelsMixin(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
Note: This function appends passed data to existing values
obj spec.vmselect.claimTemplates.spec.selector.matchExpressions
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.vmselect.claimTemplates.spec.selector.matchExpressions.withKey
withKey(key)
"key is the label key that the selector applies to."
fn spec.vmselect.claimTemplates.spec.selector.matchExpressions.withOperator
withOperator(operator)
"operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist."
fn spec.vmselect.claimTemplates.spec.selector.matchExpressions.withValues
withValues(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
fn spec.vmselect.claimTemplates.spec.selector.matchExpressions.withValuesMixin
withValuesMixin(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
Note: This function appends passed data to existing values
obj spec.vmselect.dnsConfig
"Specifies the DNS parameters of a pod.\nParameters specified here will be merged to the generated DNS\nconfiguration based on DNSPolicy."
fn spec.vmselect.dnsConfig.withNameservers
withNameservers(nameservers)
"A list of DNS name server IP addresses.\nThis will be appended to the base nameservers generated from DNSPolicy.\nDuplicated nameservers will be removed."
fn spec.vmselect.dnsConfig.withNameserversMixin
withNameserversMixin(nameservers)
"A list of DNS name server IP addresses.\nThis will be appended to the base nameservers generated from DNSPolicy.\nDuplicated nameservers will be removed."
Note: This function appends passed data to existing values
fn spec.vmselect.dnsConfig.withOptions
withOptions(options)
"A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy."
fn spec.vmselect.dnsConfig.withOptionsMixin
withOptionsMixin(options)
"A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy."
Note: This function appends passed data to existing values
fn spec.vmselect.dnsConfig.withSearches
withSearches(searches)
"A list of DNS search domains for host-name lookup.\nThis will be appended to the base search paths generated from DNSPolicy.\nDuplicated search paths will be removed."
fn spec.vmselect.dnsConfig.withSearchesMixin
withSearchesMixin(searches)
"A list of DNS search domains for host-name lookup.\nThis will be appended to the base search paths generated from DNSPolicy.\nDuplicated search paths will be removed."
Note: This function appends passed data to existing values
obj spec.vmselect.dnsConfig.options
"A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy."
fn spec.vmselect.dnsConfig.options.withName
withName(name)
"Required."
fn spec.vmselect.dnsConfig.options.withValue
withValue(value)
obj spec.vmselect.extraEnvs
"ExtraEnvs that will be passed to the application container"
fn spec.vmselect.extraEnvs.withName
withName(name)
"Name of the environment variable. Must be a C_IDENTIFIER."
fn spec.vmselect.extraEnvs.withValue
withValue(value)
"Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\"."
obj spec.vmselect.hostAliases
"HostAliases provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork."
fn spec.vmselect.hostAliases.withHostnames
withHostnames(hostnames)
"Hostnames for the above IP address."
fn spec.vmselect.hostAliases.withHostnamesMixin
withHostnamesMixin(hostnames)
"Hostnames for the above IP address."
Note: This function appends passed data to existing values
fn spec.vmselect.hostAliases.withIp
withIp(ip)
"IP address of the host file entry."
obj spec.vmselect.host_aliases
"HostAliasesUnderScore provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork.\nHas Priority over hostAliases field"
fn spec.vmselect.host_aliases.withHostnames
withHostnames(hostnames)
"Hostnames for the above IP address."
fn spec.vmselect.host_aliases.withHostnamesMixin
withHostnamesMixin(hostnames)
"Hostnames for the above IP address."
Note: This function appends passed data to existing values
fn spec.vmselect.host_aliases.withIp
withIp(ip)
"IP address of the host file entry."
obj spec.vmselect.image
"Image - docker image settings\nif no specified operator uses default version from operator config"
fn spec.vmselect.image.withPullPolicy
withPullPolicy(pullPolicy)
"PullPolicy describes how to pull docker image"
fn spec.vmselect.image.withRepository
withRepository(repository)
"Repository contains name of docker image + it's repository if needed"
fn spec.vmselect.image.withTag
withTag(tag)
"Tag contains desired docker image version"
obj spec.vmselect.imagePullSecrets
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
fn spec.vmselect.imagePullSecrets.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
obj spec.vmselect.persistentVolume
"Storage - add persistent volume for cacheMountPath\nits useful for persistent cache\nuse storage instead of persistentVolume."
fn spec.vmselect.persistentVolume.withDisableMountSubPath
withDisableMountSubPath(disableMountSubPath)
"Deprecated: subPath usage will be disabled by default in a future release, this option will become unnecessary.\nDisableMountSubPath allows to remove any subPath usage in volume mounts."
fn spec.vmselect.persistentVolume.withVolumeClaimTemplate
withVolumeClaimTemplate(volumeClaimTemplate)
"A PVC spec to be used by the VMAlertManager StatefulSets."
fn spec.vmselect.persistentVolume.withVolumeClaimTemplateMixin
withVolumeClaimTemplateMixin(volumeClaimTemplate)
"A PVC spec to be used by the VMAlertManager StatefulSets."
Note: This function appends passed data to existing values
obj spec.vmselect.persistentVolume.emptyDir
"EmptyDirVolumeSource to be used by the Prometheus StatefulSets. If specified, used in place of any volumeClaimTemplate. More\ninfo: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir"
fn spec.vmselect.persistentVolume.emptyDir.withMedium
withMedium(medium)
"medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"
fn spec.vmselect.persistentVolume.emptyDir.withSizeLimit
withSizeLimit(sizeLimit)
"sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"
obj spec.vmselect.podDisruptionBudget
"PodDisruptionBudget created by operator"
fn spec.vmselect.podDisruptionBudget.withMaxUnavailable
withMaxUnavailable(maxUnavailable)
"An eviction is allowed if at most \"maxUnavailable\" pods selected by\n\"selector\" are unavailable after the eviction, i.e. even in absence of\nthe evicted pod. For example, one can prevent all voluntary evictions\nby specifying 0. This is a mutually exclusive setting with \"minAvailable\"."
fn spec.vmselect.podDisruptionBudget.withMinAvailable
withMinAvailable(minAvailable)
"An eviction is allowed if at least \"minAvailable\" pods selected by\n\"selector\" will still be available after the eviction, i.e. even in the\nabsence of the evicted pod. So for example you can prevent all voluntary\nevictions by specifying \"100%\"."
fn spec.vmselect.podDisruptionBudget.withSelectorLabels
withSelectorLabels(selectorLabels)
"replaces default labels selector generated by operator\nit's useful when you need to create custom budget"
fn spec.vmselect.podDisruptionBudget.withSelectorLabelsMixin
withSelectorLabelsMixin(selectorLabels)
"replaces default labels selector generated by operator\nit's useful when you need to create custom budget"
Note: This function appends passed data to existing values
obj spec.vmselect.podMetadata
"PodMetadata configures Labels and Annotations which are propagated to the VMSelect pods."
fn spec.vmselect.podMetadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
fn spec.vmselect.podMetadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
Note: This function appends passed data to existing values
fn spec.vmselect.podMetadata.withLabels
withLabels(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
fn spec.vmselect.podMetadata.withLabelsMixin
withLabelsMixin(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
Note: This function appends passed data to existing values
fn spec.vmselect.podMetadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"
obj spec.vmselect.readinessGates
"ReadinessGates defines pod readiness gates"
fn spec.vmselect.readinessGates.withConditionType
withConditionType(conditionType)
"ConditionType refers to a condition in the pod's condition list with matching type."
obj spec.vmselect.resources
"Resources container resource request and limits, https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\nif not defined default resources from operator config will be used"
fn spec.vmselect.resources.withClaims
withClaims(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
fn spec.vmselect.resources.withClaimsMixin
withClaimsMixin(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
Note: This function appends passed data to existing values
fn spec.vmselect.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmselect.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.vmselect.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmselect.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.vmselect.resources.claims
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
fn spec.vmselect.resources.claims.withName
withName(name)
"Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container."
obj spec.vmselect.serviceSpec
"ServiceSpec that will be added to vmselect service spec"
fn spec.vmselect.serviceSpec.withSpec
withSpec(spec)
"ServiceSpec describes the attributes that a user creates on a service.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/"
fn spec.vmselect.serviceSpec.withSpecMixin
withSpecMixin(spec)
"ServiceSpec describes the attributes that a user creates on a service.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/"
Note: This function appends passed data to existing values
fn spec.vmselect.serviceSpec.withUseAsDefault
withUseAsDefault(useAsDefault)
"UseAsDefault applies changes from given service definition to the main object Service\nChanging from headless service to clusterIP or loadbalancer may break cross-component communication"
obj spec.vmselect.serviceSpec.metadata
"EmbeddedObjectMetadata defines objectMeta for additional service."
fn spec.vmselect.serviceSpec.metadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
fn spec.vmselect.serviceSpec.metadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
Note: This function appends passed data to existing values
fn spec.vmselect.serviceSpec.metadata.withLabels
withLabels(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
fn spec.vmselect.serviceSpec.metadata.withLabelsMixin
withLabelsMixin(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
Note: This function appends passed data to existing values
fn spec.vmselect.serviceSpec.metadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"
obj spec.vmselect.storage
"StorageSpec - add persistent volume claim for cacheMountPath\nits needed for persistent cache"
fn spec.vmselect.storage.withDisableMountSubPath
withDisableMountSubPath(disableMountSubPath)
"Deprecated: subPath usage will be disabled by default in a future release, this option will become unnecessary.\nDisableMountSubPath allows to remove any subPath usage in volume mounts."
obj spec.vmselect.storage.emptyDir
"EmptyDirVolumeSource to be used by the Prometheus StatefulSets. If specified, used in place of any volumeClaimTemplate. More\ninfo: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir"
fn spec.vmselect.storage.emptyDir.withMedium
withMedium(medium)
"medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"
fn spec.vmselect.storage.emptyDir.withSizeLimit
withSizeLimit(sizeLimit)
"sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"
obj spec.vmselect.storage.volumeClaimTemplate
"A PVC spec to be used by the VMAlertManager StatefulSets."
fn spec.vmselect.storage.volumeClaimTemplate.withApiVersion
withApiVersion(apiVersion)
"APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
fn spec.vmselect.storage.volumeClaimTemplate.withKind
withKind(kind)
"Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
obj spec.vmselect.storage.volumeClaimTemplate.metadata
"EmbeddedMetadata contains metadata relevant to an EmbeddedResource."
fn spec.vmselect.storage.volumeClaimTemplate.metadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
fn spec.vmselect.storage.volumeClaimTemplate.metadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
Note: This function appends passed data to existing values
fn spec.vmselect.storage.volumeClaimTemplate.metadata.withLabels
withLabels(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
fn spec.vmselect.storage.volumeClaimTemplate.metadata.withLabelsMixin
withLabelsMixin(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
Note: This function appends passed data to existing values
fn spec.vmselect.storage.volumeClaimTemplate.metadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"
obj spec.vmselect.storage.volumeClaimTemplate.spec
"Spec defines the desired characteristics of a volume requested by a pod author.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"
fn spec.vmselect.storage.volumeClaimTemplate.spec.withAccessModes
withAccessModes(accessModes)
"accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"
fn spec.vmselect.storage.volumeClaimTemplate.spec.withAccessModesMixin
withAccessModesMixin(accessModes)
"accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"
Note: This function appends passed data to existing values
fn spec.vmselect.storage.volumeClaimTemplate.spec.withStorageClassName
withStorageClassName(storageClassName)
"storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"
fn spec.vmselect.storage.volumeClaimTemplate.spec.withVolumeAttributesClassName
withVolumeAttributesClassName(volumeAttributesClassName)
"volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled."
fn spec.vmselect.storage.volumeClaimTemplate.spec.withVolumeMode
withVolumeMode(volumeMode)
"volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec."
fn spec.vmselect.storage.volumeClaimTemplate.spec.withVolumeName
withVolumeName(volumeName)
"volumeName is the binding reference to the PersistentVolume backing this claim."
obj spec.vmselect.storage.volumeClaimTemplate.spec.dataSource
"dataSource field can be used to specify either:\n An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource."
fn spec.vmselect.storage.volumeClaimTemplate.spec.dataSource.withApiGroup
withApiGroup(apiGroup)
"APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required."
fn spec.vmselect.storage.volumeClaimTemplate.spec.dataSource.withKind
withKind(kind)
"Kind is the type of resource being referenced"
fn spec.vmselect.storage.volumeClaimTemplate.spec.dataSource.withName
withName(name)
"Name is the name of resource being referenced"
obj spec.vmselect.storage.volumeClaimTemplate.spec.dataSourceRef
"dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
fn spec.vmselect.storage.volumeClaimTemplate.spec.dataSourceRef.withApiGroup
withApiGroup(apiGroup)
"APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required."
fn spec.vmselect.storage.volumeClaimTemplate.spec.dataSourceRef.withKind
withKind(kind)
"Kind is the type of resource being referenced"
fn spec.vmselect.storage.volumeClaimTemplate.spec.dataSourceRef.withName
withName(name)
"Name is the name of resource being referenced"
fn spec.vmselect.storage.volumeClaimTemplate.spec.dataSourceRef.withNamespace
withNamespace(namespace)
"Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
obj spec.vmselect.storage.volumeClaimTemplate.spec.resources
"resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources"
fn spec.vmselect.storage.volumeClaimTemplate.spec.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmselect.storage.volumeClaimTemplate.spec.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.vmselect.storage.volumeClaimTemplate.spec.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmselect.storage.volumeClaimTemplate.spec.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.vmselect.storage.volumeClaimTemplate.spec.selector
"selector is a label query over volumes to consider for binding."
fn spec.vmselect.storage.volumeClaimTemplate.spec.selector.withMatchExpressions
withMatchExpressions(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.vmselect.storage.volumeClaimTemplate.spec.selector.withMatchExpressionsMixin
withMatchExpressionsMixin(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
Note: This function appends passed data to existing values
fn spec.vmselect.storage.volumeClaimTemplate.spec.selector.withMatchLabels
withMatchLabels(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
fn spec.vmselect.storage.volumeClaimTemplate.spec.selector.withMatchLabelsMixin
withMatchLabelsMixin(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
Note: This function appends passed data to existing values
obj spec.vmselect.storage.volumeClaimTemplate.spec.selector.matchExpressions
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.vmselect.storage.volumeClaimTemplate.spec.selector.matchExpressions.withKey
withKey(key)
"key is the label key that the selector applies to."
fn spec.vmselect.storage.volumeClaimTemplate.spec.selector.matchExpressions.withOperator
withOperator(operator)
"operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist."
fn spec.vmselect.storage.volumeClaimTemplate.spec.selector.matchExpressions.withValues
withValues(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
fn spec.vmselect.storage.volumeClaimTemplate.spec.selector.matchExpressions.withValuesMixin
withValuesMixin(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
Note: This function appends passed data to existing values
obj spec.vmselect.tolerations
"Tolerations If specified, the pod's tolerations."
fn spec.vmselect.tolerations.withEffect
withEffect(effect)
"Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute."
fn spec.vmselect.tolerations.withKey
withKey(key)
"Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys."
fn spec.vmselect.tolerations.withOperator
withOperator(operator)
"Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category."
fn spec.vmselect.tolerations.withTolerationSeconds
withTolerationSeconds(tolerationSeconds)
"TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system."
fn spec.vmselect.tolerations.withValue
withValue(value)
"Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string."
obj spec.vmselect.volumeMounts
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment/StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the Application container"
fn spec.vmselect.volumeMounts.withMountPath
withMountPath(mountPath)
"Path within the container at which the volume should be mounted. Must\nnot contain ':'."
fn spec.vmselect.volumeMounts.withMountPropagation
withMountPropagation(mountPropagation)
"mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None)."
fn spec.vmselect.volumeMounts.withName
withName(name)
"This must match the Name of a Volume."
fn spec.vmselect.volumeMounts.withReadOnly
withReadOnly(readOnly)
"Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false."
fn spec.vmselect.volumeMounts.withRecursiveReadOnly
withRecursiveReadOnly(recursiveReadOnly)
"RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\n\nIf this field is not specified, it is treated as an equivalent of Disabled."
fn spec.vmselect.volumeMounts.withSubPath
withSubPath(subPath)
"Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root)."
fn spec.vmselect.volumeMounts.withSubPathExpr
withSubPathExpr(subPathExpr)
"Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive."
obj spec.vmstorage
fn spec.vmstorage.withAffinity
withAffinity(affinity)
"Affinity If specified, the pod's scheduling constraints."
fn spec.vmstorage.withAffinityMixin
withAffinityMixin(affinity)
"Affinity If specified, the pod's scheduling constraints."
Note: This function appends passed data to existing values
fn spec.vmstorage.withClaimTemplates
withClaimTemplates(claimTemplates)
"ClaimTemplates allows adding additional VolumeClaimTemplates for StatefulSet"
fn spec.vmstorage.withClaimTemplatesMixin
withClaimTemplatesMixin(claimTemplates)
"ClaimTemplates allows adding additional VolumeClaimTemplates for StatefulSet"
Note: This function appends passed data to existing values
fn spec.vmstorage.withConfigMaps
withConfigMaps(configMaps)
"ConfigMaps is a list of ConfigMaps in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/configs/CONFIGMAP_NAME folder"
fn spec.vmstorage.withConfigMapsMixin
withConfigMapsMixin(configMaps)
"ConfigMaps is a list of ConfigMaps in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/configs/CONFIGMAP_NAME folder"
Note: This function appends passed data to existing values
fn spec.vmstorage.withContainers
withContainers(containers)
"Containers property allows to inject additions sidecars or to patch existing containers.\nIt can be useful for proxies, backup, etc."
fn spec.vmstorage.withContainersMixin
withContainersMixin(containers)
"Containers property allows to inject additions sidecars or to patch existing containers.\nIt can be useful for proxies, backup, etc."
Note: This function appends passed data to existing values
fn spec.vmstorage.withDisableSelfServiceScrape
withDisableSelfServiceScrape(disableSelfServiceScrape)
"DisableSelfServiceScrape controls creation of VMServiceScrape by operator\nfor the application.\nHas priority over VM_DISABLESELFSERVICESCRAPECREATION
operator env variable"
fn spec.vmstorage.withDnsPolicy
withDnsPolicy(dnsPolicy)
"DNSPolicy sets DNS policy for the pod"
fn spec.vmstorage.withExtraArgs
withExtraArgs(extraArgs)
"ExtraArgs that will be passed to the application container\nfor example remoteWrite.tmpDataPath: /tmp"
fn spec.vmstorage.withExtraArgsMixin
withExtraArgsMixin(extraArgs)
"ExtraArgs that will be passed to the application container\nfor example remoteWrite.tmpDataPath: /tmp"
Note: This function appends passed data to existing values
fn spec.vmstorage.withExtraEnvs
withExtraEnvs(extraEnvs)
"ExtraEnvs that will be passed to the application container"
fn spec.vmstorage.withExtraEnvsMixin
withExtraEnvsMixin(extraEnvs)
"ExtraEnvs that will be passed to the application container"
Note: This function appends passed data to existing values
fn spec.vmstorage.withHostAliases
withHostAliases(hostAliases)
"HostAliases provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork."
fn spec.vmstorage.withHostAliasesMixin
withHostAliasesMixin(hostAliases)
"HostAliases provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork."
Note: This function appends passed data to existing values
fn spec.vmstorage.withHostNetwork
withHostNetwork(hostNetwork)
"HostNetwork controls whether the pod may use the node network namespace"
fn spec.vmstorage.withHost_aliases
withHost_aliases(host_aliases)
"HostAliasesUnderScore provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork.\nHas Priority over hostAliases field"
fn spec.vmstorage.withHost_aliasesMixin
withHost_aliasesMixin(host_aliases)
"HostAliasesUnderScore provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork.\nHas Priority over hostAliases field"
Note: This function appends passed data to existing values
fn spec.vmstorage.withImagePullSecrets
withImagePullSecrets(imagePullSecrets)
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
fn spec.vmstorage.withImagePullSecretsMixin
withImagePullSecretsMixin(imagePullSecrets)
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
Note: This function appends passed data to existing values
fn spec.vmstorage.withInitContainers
withInitContainers(initContainers)
"InitContainers allows adding initContainers to the pod definition.\nAny errors during the execution of an initContainer will lead to a restart of the Pod.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"
fn spec.vmstorage.withInitContainersMixin
withInitContainersMixin(initContainers)
"InitContainers allows adding initContainers to the pod definition.\nAny errors during the execution of an initContainer will lead to a restart of the Pod.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"
Note: This function appends passed data to existing values
fn spec.vmstorage.withLivenessProbe
withLivenessProbe(livenessProbe)
"LivenessProbe that will be added CRD pod"
fn spec.vmstorage.withLivenessProbeMixin
withLivenessProbeMixin(livenessProbe)
"LivenessProbe that will be added CRD pod"
Note: This function appends passed data to existing values
fn spec.vmstorage.withLogFormat
withLogFormat(logFormat)
"LogFormat for VMStorage to be configured with.\ndefault or json"
fn spec.vmstorage.withLogLevel
withLogLevel(logLevel)
"LogLevel for VMStorage to be configured with."
fn spec.vmstorage.withMaintenanceInsertNodeIDs
withMaintenanceInsertNodeIDs(maintenanceInsertNodeIDs)
"MaintenanceInsertNodeIDs - excludes given node ids from insert requests routing, must contain pod suffixes - for pod-0, id will be 0 and etc.\nlets say, you have pod-0, pod-1, pod-2, pod-3. to exclude pod-0 and pod-3 from insert routing, define nodeIDs: [0,3].\nUseful at storage expanding, when you want to rebalance some data at cluster."
fn spec.vmstorage.withMaintenanceInsertNodeIDsMixin
withMaintenanceInsertNodeIDsMixin(maintenanceInsertNodeIDs)
"MaintenanceInsertNodeIDs - excludes given node ids from insert requests routing, must contain pod suffixes - for pod-0, id will be 0 and etc.\nlets say, you have pod-0, pod-1, pod-2, pod-3. to exclude pod-0 and pod-3 from insert routing, define nodeIDs: [0,3].\nUseful at storage expanding, when you want to rebalance some data at cluster."
Note: This function appends passed data to existing values
fn spec.vmstorage.withMaintenanceSelectNodeIDs
withMaintenanceSelectNodeIDs(maintenanceSelectNodeIDs)
"MaintenanceInsertNodeIDs - excludes given node ids from select requests routing, must contain pod suffixes - for pod-0, id will be 0 and etc."
fn spec.vmstorage.withMaintenanceSelectNodeIDsMixin
withMaintenanceSelectNodeIDsMixin(maintenanceSelectNodeIDs)
"MaintenanceInsertNodeIDs - excludes given node ids from select requests routing, must contain pod suffixes - for pod-0, id will be 0 and etc."
Note: This function appends passed data to existing values
fn spec.vmstorage.withMinReadySeconds
withMinReadySeconds(minReadySeconds)
"MinReadySeconds defines a minim number os seconds to wait before starting update next pod\nif previous in healthy state\nHas no effect for VLogs and VMSingle"
fn spec.vmstorage.withNodeSelector
withNodeSelector(nodeSelector)
"NodeSelector Define which Nodes the Pods are scheduled on."
fn spec.vmstorage.withNodeSelectorMixin
withNodeSelectorMixin(nodeSelector)
"NodeSelector Define which Nodes the Pods are scheduled on."
Note: This function appends passed data to existing values
fn spec.vmstorage.withPaused
withPaused(paused)
"Paused If set to true all actions on the underlying managed objects are not\ngoing to be performed, except for delete actions."
fn spec.vmstorage.withPort
withPort(port)
"Port listen address"
fn spec.vmstorage.withPriorityClassName
withPriorityClassName(priorityClassName)
"PriorityClassName class assigned to the Pods"
fn spec.vmstorage.withReadinessGates
withReadinessGates(readinessGates)
"ReadinessGates defines pod readiness gates"
fn spec.vmstorage.withReadinessGatesMixin
withReadinessGatesMixin(readinessGates)
"ReadinessGates defines pod readiness gates"
Note: This function appends passed data to existing values
fn spec.vmstorage.withReadinessProbe
withReadinessProbe(readinessProbe)
"ReadinessProbe that will be added CRD pod"
fn spec.vmstorage.withReadinessProbeMixin
withReadinessProbeMixin(readinessProbe)
"ReadinessProbe that will be added CRD pod"
Note: This function appends passed data to existing values
fn spec.vmstorage.withReplicaCount
withReplicaCount(replicaCount)
"ReplicaCount is the expected size of the Application."
fn spec.vmstorage.withRevisionHistoryLimitCount
withRevisionHistoryLimitCount(revisionHistoryLimitCount)
"The number of old ReplicaSets to retain to allow rollback in deployment or\nmaximum number of revisions that will be maintained in the Deployment revision history.\nHas no effect at StatefulSets\nDefaults to 10."
fn spec.vmstorage.withRollingUpdateStrategy
withRollingUpdateStrategy(rollingUpdateStrategy)
"RollingUpdateStrategy defines strategy for application updates\nDefault is OnDelete, in this case operator handles update process\nCan be changed for RollingUpdate"
fn spec.vmstorage.withRuntimeClassName
withRuntimeClassName(runtimeClassName)
"RuntimeClassName - defines runtime class for kubernetes pod.\nhttps://kubernetes.io/docs/concepts/containers/runtime-class/"
fn spec.vmstorage.withSchedulerName
withSchedulerName(schedulerName)
"SchedulerName - defines kubernetes scheduler name"
fn spec.vmstorage.withSecrets
withSecrets(secrets)
"Secrets is a list of Secrets in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/secrets/SECRET_NAME folder"
fn spec.vmstorage.withSecretsMixin
withSecretsMixin(secrets)
"Secrets is a list of Secrets in the same namespace as the Application\nobject, which shall be mounted into the Application container\nat /etc/vm/secrets/SECRET_NAME folder"
Note: This function appends passed data to existing values
fn spec.vmstorage.withSecurityContext
withSecurityContext(securityContext)
"SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext."
fn spec.vmstorage.withSecurityContextMixin
withSecurityContextMixin(securityContext)
"SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext."
Note: This function appends passed data to existing values
fn spec.vmstorage.withServiceScrapeSpec
withServiceScrapeSpec(serviceScrapeSpec)
"ServiceScrapeSpec that will be added to vmstorage VMServiceScrape spec"
fn spec.vmstorage.withServiceScrapeSpecMixin
withServiceScrapeSpecMixin(serviceScrapeSpec)
"ServiceScrapeSpec that will be added to vmstorage VMServiceScrape spec"
Note: This function appends passed data to existing values
fn spec.vmstorage.withStartupProbe
withStartupProbe(startupProbe)
"StartupProbe that will be added to CRD pod"
fn spec.vmstorage.withStartupProbeMixin
withStartupProbeMixin(startupProbe)
"StartupProbe that will be added to CRD pod"
Note: This function appends passed data to existing values
fn spec.vmstorage.withStorageDataPath
withStorageDataPath(storageDataPath)
"StorageDataPath - path to storage data"
fn spec.vmstorage.withTerminationGracePeriodSeconds
withTerminationGracePeriodSeconds(terminationGracePeriodSeconds)
"TerminationGracePeriodSeconds period for container graceful termination"
fn spec.vmstorage.withTolerations
withTolerations(tolerations)
"Tolerations If specified, the pod's tolerations."
fn spec.vmstorage.withTolerationsMixin
withTolerationsMixin(tolerations)
"Tolerations If specified, the pod's tolerations."
Note: This function appends passed data to existing values
fn spec.vmstorage.withTopologySpreadConstraints
withTopologySpreadConstraints(topologySpreadConstraints)
"TopologySpreadConstraints embedded kubernetes pod configuration option,\ncontrols how pods are spread across your cluster among failure-domains\nsuch as regions, zones, nodes, and other user-defined topology domains\nhttps://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/"
fn spec.vmstorage.withTopologySpreadConstraintsMixin
withTopologySpreadConstraintsMixin(topologySpreadConstraints)
"TopologySpreadConstraints embedded kubernetes pod configuration option,\ncontrols how pods are spread across your cluster among failure-domains\nsuch as regions, zones, nodes, and other user-defined topology domains\nhttps://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/"
Note: This function appends passed data to existing values
fn spec.vmstorage.withUseDefaultResources
withUseDefaultResources(useDefaultResources)
"UseDefaultResources controls resource settings\nBy default, operator sets built-in resource requirements"
fn spec.vmstorage.withUseStrictSecurity
withUseStrictSecurity(useStrictSecurity)
"UseStrictSecurity enables strict security mode for component\nit restricts disk writes access\nuses non-root user out of the box\ndrops not needed security permissions"
fn spec.vmstorage.withVmInsertPort
withVmInsertPort(vmInsertPort)
"VMInsertPort for VMInsert connections"
fn spec.vmstorage.withVmSelectPort
withVmSelectPort(vmSelectPort)
"VMSelectPort for VMSelect connections"
fn spec.vmstorage.withVolumeMounts
withVolumeMounts(volumeMounts)
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment/StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the Application container"
fn spec.vmstorage.withVolumeMountsMixin
withVolumeMountsMixin(volumeMounts)
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment/StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the Application container"
Note: This function appends passed data to existing values
fn spec.vmstorage.withVolumes
withVolumes(volumes)
"Volumes allows configuration of additional volumes on the output Deployment/StatefulSet definition.\nVolumes specified will be appended to other volumes that are generated.\n/ +optional"
fn spec.vmstorage.withVolumesMixin
withVolumesMixin(volumes)
"Volumes allows configuration of additional volumes on the output Deployment/StatefulSet definition.\nVolumes specified will be appended to other volumes that are generated.\n/ +optional"
Note: This function appends passed data to existing values
obj spec.vmstorage.claimTemplates
"ClaimTemplates allows adding additional VolumeClaimTemplates for StatefulSet"
fn spec.vmstorage.claimTemplates.withApiVersion
withApiVersion(apiVersion)
"APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
fn spec.vmstorage.claimTemplates.withKind
withKind(kind)
"Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
fn spec.vmstorage.claimTemplates.withMetadata
withMetadata(metadata)
"Standard object's metadata.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
fn spec.vmstorage.claimTemplates.withMetadataMixin
withMetadataMixin(metadata)
"Standard object's metadata.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
Note: This function appends passed data to existing values
obj spec.vmstorage.claimTemplates.spec
"spec defines the desired characteristics of a volume requested by a pod author.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"
fn spec.vmstorage.claimTemplates.spec.withAccessModes
withAccessModes(accessModes)
"accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"
fn spec.vmstorage.claimTemplates.spec.withAccessModesMixin
withAccessModesMixin(accessModes)
"accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"
Note: This function appends passed data to existing values
fn spec.vmstorage.claimTemplates.spec.withStorageClassName
withStorageClassName(storageClassName)
"storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"
fn spec.vmstorage.claimTemplates.spec.withVolumeAttributesClassName
withVolumeAttributesClassName(volumeAttributesClassName)
"volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled."
fn spec.vmstorage.claimTemplates.spec.withVolumeMode
withVolumeMode(volumeMode)
"volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec."
fn spec.vmstorage.claimTemplates.spec.withVolumeName
withVolumeName(volumeName)
"volumeName is the binding reference to the PersistentVolume backing this claim."
obj spec.vmstorage.claimTemplates.spec.dataSource
"dataSource field can be used to specify either:\n An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource."
fn spec.vmstorage.claimTemplates.spec.dataSource.withApiGroup
withApiGroup(apiGroup)
"APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required."
fn spec.vmstorage.claimTemplates.spec.dataSource.withKind
withKind(kind)
"Kind is the type of resource being referenced"
fn spec.vmstorage.claimTemplates.spec.dataSource.withName
withName(name)
"Name is the name of resource being referenced"
obj spec.vmstorage.claimTemplates.spec.dataSourceRef
"dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
fn spec.vmstorage.claimTemplates.spec.dataSourceRef.withApiGroup
withApiGroup(apiGroup)
"APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required."
fn spec.vmstorage.claimTemplates.spec.dataSourceRef.withKind
withKind(kind)
"Kind is the type of resource being referenced"
fn spec.vmstorage.claimTemplates.spec.dataSourceRef.withName
withName(name)
"Name is the name of resource being referenced"
fn spec.vmstorage.claimTemplates.spec.dataSourceRef.withNamespace
withNamespace(namespace)
"Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
obj spec.vmstorage.claimTemplates.spec.resources
"resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources"
fn spec.vmstorage.claimTemplates.spec.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmstorage.claimTemplates.spec.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.vmstorage.claimTemplates.spec.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmstorage.claimTemplates.spec.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.vmstorage.claimTemplates.spec.selector
"selector is a label query over volumes to consider for binding."
fn spec.vmstorage.claimTemplates.spec.selector.withMatchExpressions
withMatchExpressions(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.vmstorage.claimTemplates.spec.selector.withMatchExpressionsMixin
withMatchExpressionsMixin(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
Note: This function appends passed data to existing values
fn spec.vmstorage.claimTemplates.spec.selector.withMatchLabels
withMatchLabels(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
fn spec.vmstorage.claimTemplates.spec.selector.withMatchLabelsMixin
withMatchLabelsMixin(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
Note: This function appends passed data to existing values
obj spec.vmstorage.claimTemplates.spec.selector.matchExpressions
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.vmstorage.claimTemplates.spec.selector.matchExpressions.withKey
withKey(key)
"key is the label key that the selector applies to."
fn spec.vmstorage.claimTemplates.spec.selector.matchExpressions.withOperator
withOperator(operator)
"operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist."
fn spec.vmstorage.claimTemplates.spec.selector.matchExpressions.withValues
withValues(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
fn spec.vmstorage.claimTemplates.spec.selector.matchExpressions.withValuesMixin
withValuesMixin(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
Note: This function appends passed data to existing values
obj spec.vmstorage.dnsConfig
"Specifies the DNS parameters of a pod.\nParameters specified here will be merged to the generated DNS\nconfiguration based on DNSPolicy."
fn spec.vmstorage.dnsConfig.withNameservers
withNameservers(nameservers)
"A list of DNS name server IP addresses.\nThis will be appended to the base nameservers generated from DNSPolicy.\nDuplicated nameservers will be removed."
fn spec.vmstorage.dnsConfig.withNameserversMixin
withNameserversMixin(nameservers)
"A list of DNS name server IP addresses.\nThis will be appended to the base nameservers generated from DNSPolicy.\nDuplicated nameservers will be removed."
Note: This function appends passed data to existing values
fn spec.vmstorage.dnsConfig.withOptions
withOptions(options)
"A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy."
fn spec.vmstorage.dnsConfig.withOptionsMixin
withOptionsMixin(options)
"A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy."
Note: This function appends passed data to existing values
fn spec.vmstorage.dnsConfig.withSearches
withSearches(searches)
"A list of DNS search domains for host-name lookup.\nThis will be appended to the base search paths generated from DNSPolicy.\nDuplicated search paths will be removed."
fn spec.vmstorage.dnsConfig.withSearchesMixin
withSearchesMixin(searches)
"A list of DNS search domains for host-name lookup.\nThis will be appended to the base search paths generated from DNSPolicy.\nDuplicated search paths will be removed."
Note: This function appends passed data to existing values
obj spec.vmstorage.dnsConfig.options
"A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy."
fn spec.vmstorage.dnsConfig.options.withName
withName(name)
"Required."
fn spec.vmstorage.dnsConfig.options.withValue
withValue(value)
obj spec.vmstorage.extraEnvs
"ExtraEnvs that will be passed to the application container"
fn spec.vmstorage.extraEnvs.withName
withName(name)
"Name of the environment variable. Must be a C_IDENTIFIER."
fn spec.vmstorage.extraEnvs.withValue
withValue(value)
"Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\"."
obj spec.vmstorage.hostAliases
"HostAliases provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork."
fn spec.vmstorage.hostAliases.withHostnames
withHostnames(hostnames)
"Hostnames for the above IP address."
fn spec.vmstorage.hostAliases.withHostnamesMixin
withHostnamesMixin(hostnames)
"Hostnames for the above IP address."
Note: This function appends passed data to existing values
fn spec.vmstorage.hostAliases.withIp
withIp(ip)
"IP address of the host file entry."
obj spec.vmstorage.host_aliases
"HostAliasesUnderScore provides mapping for ip and hostname,\nthat would be propagated to pod,\ncannot be used with HostNetwork.\nHas Priority over hostAliases field"
fn spec.vmstorage.host_aliases.withHostnames
withHostnames(hostnames)
"Hostnames for the above IP address."
fn spec.vmstorage.host_aliases.withHostnamesMixin
withHostnamesMixin(hostnames)
"Hostnames for the above IP address."
Note: This function appends passed data to existing values
fn spec.vmstorage.host_aliases.withIp
withIp(ip)
"IP address of the host file entry."
obj spec.vmstorage.image
"Image - docker image settings\nif no specified operator uses default version from operator config"
fn spec.vmstorage.image.withPullPolicy
withPullPolicy(pullPolicy)
"PullPolicy describes how to pull docker image"
fn spec.vmstorage.image.withRepository
withRepository(repository)
"Repository contains name of docker image + it's repository if needed"
fn spec.vmstorage.image.withTag
withTag(tag)
"Tag contains desired docker image version"
obj spec.vmstorage.imagePullSecrets
"ImagePullSecrets An optional list of references to secrets in the same namespace\nto use for pulling images from registries\nsee https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod"
fn spec.vmstorage.imagePullSecrets.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
obj spec.vmstorage.podDisruptionBudget
"PodDisruptionBudget created by operator"
fn spec.vmstorage.podDisruptionBudget.withMaxUnavailable
withMaxUnavailable(maxUnavailable)
"An eviction is allowed if at most \"maxUnavailable\" pods selected by\n\"selector\" are unavailable after the eviction, i.e. even in absence of\nthe evicted pod. For example, one can prevent all voluntary evictions\nby specifying 0. This is a mutually exclusive setting with \"minAvailable\"."
fn spec.vmstorage.podDisruptionBudget.withMinAvailable
withMinAvailable(minAvailable)
"An eviction is allowed if at least \"minAvailable\" pods selected by\n\"selector\" will still be available after the eviction, i.e. even in the\nabsence of the evicted pod. So for example you can prevent all voluntary\nevictions by specifying \"100%\"."
fn spec.vmstorage.podDisruptionBudget.withSelectorLabels
withSelectorLabels(selectorLabels)
"replaces default labels selector generated by operator\nit's useful when you need to create custom budget"
fn spec.vmstorage.podDisruptionBudget.withSelectorLabelsMixin
withSelectorLabelsMixin(selectorLabels)
"replaces default labels selector generated by operator\nit's useful when you need to create custom budget"
Note: This function appends passed data to existing values
obj spec.vmstorage.podMetadata
"PodMetadata configures Labels and Annotations which are propagated to the VMStorage pods."
fn spec.vmstorage.podMetadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
fn spec.vmstorage.podMetadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
Note: This function appends passed data to existing values
fn spec.vmstorage.podMetadata.withLabels
withLabels(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
fn spec.vmstorage.podMetadata.withLabelsMixin
withLabelsMixin(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
Note: This function appends passed data to existing values
fn spec.vmstorage.podMetadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"
obj spec.vmstorage.readinessGates
"ReadinessGates defines pod readiness gates"
fn spec.vmstorage.readinessGates.withConditionType
withConditionType(conditionType)
"ConditionType refers to a condition in the pod's condition list with matching type."
obj spec.vmstorage.resources
"Resources container resource request and limits, https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\nif not defined default resources from operator config will be used"
fn spec.vmstorage.resources.withClaims
withClaims(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
fn spec.vmstorage.resources.withClaimsMixin
withClaimsMixin(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
Note: This function appends passed data to existing values
fn spec.vmstorage.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmstorage.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.vmstorage.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmstorage.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.vmstorage.resources.claims
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
fn spec.vmstorage.resources.claims.withName
withName(name)
"Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container."
obj spec.vmstorage.serviceSpec
"ServiceSpec that will be create additional service for vmstorage"
fn spec.vmstorage.serviceSpec.withSpec
withSpec(spec)
"ServiceSpec describes the attributes that a user creates on a service.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/"
fn spec.vmstorage.serviceSpec.withSpecMixin
withSpecMixin(spec)
"ServiceSpec describes the attributes that a user creates on a service.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/"
Note: This function appends passed data to existing values
fn spec.vmstorage.serviceSpec.withUseAsDefault
withUseAsDefault(useAsDefault)
"UseAsDefault applies changes from given service definition to the main object Service\nChanging from headless service to clusterIP or loadbalancer may break cross-component communication"
obj spec.vmstorage.serviceSpec.metadata
"EmbeddedObjectMetadata defines objectMeta for additional service."
fn spec.vmstorage.serviceSpec.metadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
fn spec.vmstorage.serviceSpec.metadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
Note: This function appends passed data to existing values
fn spec.vmstorage.serviceSpec.metadata.withLabels
withLabels(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
fn spec.vmstorage.serviceSpec.metadata.withLabelsMixin
withLabelsMixin(labels)
"Labels Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
Note: This function appends passed data to existing values
fn spec.vmstorage.serviceSpec.metadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"
obj spec.vmstorage.storage
"Storage - add persistent volume for StorageDataPath\nits useful for persistent cache"
fn spec.vmstorage.storage.withDisableMountSubPath
withDisableMountSubPath(disableMountSubPath)
"Deprecated: subPath usage will be disabled by default in a future release, this option will become unnecessary.\nDisableMountSubPath allows to remove any subPath usage in volume mounts."
fn spec.vmstorage.storage.withVolumeClaimTemplate
withVolumeClaimTemplate(volumeClaimTemplate)
"A PVC spec to be used by the VMAlertManager StatefulSets."
fn spec.vmstorage.storage.withVolumeClaimTemplateMixin
withVolumeClaimTemplateMixin(volumeClaimTemplate)
"A PVC spec to be used by the VMAlertManager StatefulSets."
Note: This function appends passed data to existing values
obj spec.vmstorage.storage.emptyDir
"EmptyDirVolumeSource to be used by the Prometheus StatefulSets. If specified, used in place of any volumeClaimTemplate. More\ninfo: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir"
fn spec.vmstorage.storage.emptyDir.withMedium
withMedium(medium)
"medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"
fn spec.vmstorage.storage.emptyDir.withSizeLimit
withSizeLimit(sizeLimit)
"sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"
obj spec.vmstorage.tolerations
"Tolerations If specified, the pod's tolerations."
fn spec.vmstorage.tolerations.withEffect
withEffect(effect)
"Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute."
fn spec.vmstorage.tolerations.withKey
withKey(key)
"Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys."
fn spec.vmstorage.tolerations.withOperator
withOperator(operator)
"Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category."
fn spec.vmstorage.tolerations.withTolerationSeconds
withTolerationSeconds(tolerationSeconds)
"TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system."
fn spec.vmstorage.tolerations.withValue
withValue(value)
"Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string."
obj spec.vmstorage.vmBackup
"VMBackup configuration for backup"
fn spec.vmstorage.vmBackup.withAcceptEULA
withAcceptEULA(acceptEULA)
"AcceptEULA accepts enterprise feature usage, must be set to true.\notherwise backupmanager cannot be added to single/cluster version.\nhttps://victoriametrics.com/legal/esa/"
fn spec.vmstorage.vmBackup.withConcurrency
withConcurrency(concurrency)
"Defines number of concurrent workers. Higher concurrency may reduce backup duration (default 10)"
fn spec.vmstorage.vmBackup.withCustomS3Endpoint
withCustomS3Endpoint(customS3Endpoint)
"Custom S3 endpoint for use with S3-compatible storages (e.g. MinIO). S3 is used if not set"
fn spec.vmstorage.vmBackup.withDestination
withDestination(destination)
"Defines destination for backup"
fn spec.vmstorage.vmBackup.withDestinationDisableSuffixAdd
withDestinationDisableSuffixAdd(destinationDisableSuffixAdd)
"DestinationDisableSuffixAdd - disables suffix adding for cluster version backups\neach vmstorage backup must have unique backup folder\nso operator adds POD_NAME as suffix for backup destination folder."
fn spec.vmstorage.vmBackup.withDisableDaily
withDisableDaily(disableDaily)
"Defines if daily backups disabled (default false)"
fn spec.vmstorage.vmBackup.withDisableHourly
withDisableHourly(disableHourly)
"Defines if hourly backups disabled (default false)"
fn spec.vmstorage.vmBackup.withDisableMonthly
withDisableMonthly(disableMonthly)
"Defines if monthly backups disabled (default false)"
fn spec.vmstorage.vmBackup.withDisableWeekly
withDisableWeekly(disableWeekly)
"Defines if weekly backups disabled (default false)"
fn spec.vmstorage.vmBackup.withExtraArgs
withExtraArgs(extraArgs)
"extra args like maxBytesPerSecond default 0"
fn spec.vmstorage.vmBackup.withExtraArgsMixin
withExtraArgsMixin(extraArgs)
"extra args like maxBytesPerSecond default 0"
Note: This function appends passed data to existing values
fn spec.vmstorage.vmBackup.withExtraEnvs
withExtraEnvs(extraEnvs)
fn spec.vmstorage.vmBackup.withExtraEnvsMixin
withExtraEnvsMixin(extraEnvs)
Note: This function appends passed data to existing values
fn spec.vmstorage.vmBackup.withLogFormat
withLogFormat(logFormat)
"LogFormat for VMBackup to be configured with.\ndefault or json"
fn spec.vmstorage.vmBackup.withLogLevel
withLogLevel(logLevel)
"LogLevel for VMBackup to be configured with."
fn spec.vmstorage.vmBackup.withPort
withPort(port)
"Port for health check connections"
fn spec.vmstorage.vmBackup.withSnapshotCreateURL
withSnapshotCreateURL(snapshotCreateURL)
"SnapshotCreateURL overwrites url for snapshot create"
fn spec.vmstorage.vmBackup.withSnapshotDeleteURL
withSnapshotDeleteURL(snapshotDeleteURL)
"SnapShotDeleteURL overwrites url for snapshot delete"
fn spec.vmstorage.vmBackup.withVolumeMounts
withVolumeMounts(volumeMounts)
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment definition.\nVolumeMounts specified will be appended to other VolumeMounts in the vmbackupmanager container,\nthat are generated as a result of StorageSpec objects."
fn spec.vmstorage.vmBackup.withVolumeMountsMixin
withVolumeMountsMixin(volumeMounts)
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment definition.\nVolumeMounts specified will be appended to other VolumeMounts in the vmbackupmanager container,\nthat are generated as a result of StorageSpec objects."
Note: This function appends passed data to existing values
obj spec.vmstorage.vmBackup.credentialsSecret
"CredentialsSecret is secret in the same namespace for access to remote storage\nThe secret is mounted into /etc/vm/creds."
fn spec.vmstorage.vmBackup.credentialsSecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.vmstorage.vmBackup.credentialsSecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vmstorage.vmBackup.credentialsSecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.vmstorage.vmBackup.extraEnvs
fn spec.vmstorage.vmBackup.extraEnvs.withName
withName(name)
"Name of the environment variable. Must be a C_IDENTIFIER."
fn spec.vmstorage.vmBackup.extraEnvs.withValue
withValue(value)
"Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\"."
obj spec.vmstorage.vmBackup.extraEnvs.valueFrom
"Source for the environment variable's value. Cannot be used if value is not empty."
obj spec.vmstorage.vmBackup.extraEnvs.valueFrom.configMapKeyRef
"Selects a key of a ConfigMap."
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.configMapKeyRef.withKey
withKey(key)
"The key to select."
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.configMapKeyRef.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.configMapKeyRef.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.vmstorage.vmBackup.extraEnvs.valueFrom.fieldRef
"Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels['<KEY>']
, metadata.annotations['<KEY>']
,\nspec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs."
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.fieldRef.withApiVersion
withApiVersion(apiVersion)
"Version of the schema the FieldPath is written in terms of, defaults to \"v1\"."
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.fieldRef.withFieldPath
withFieldPath(fieldPath)
"Path of the field to select in the specified API version."
obj spec.vmstorage.vmBackup.extraEnvs.valueFrom.resourceFieldRef
"Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported."
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.resourceFieldRef.withContainerName
withContainerName(containerName)
"Container name: required for volumes, optional for env vars"
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.resourceFieldRef.withDivisor
withDivisor(divisor)
"Specifies the output format of the exposed resources, defaults to \"1\
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.resourceFieldRef.withResource
withResource(resource)
"Required: resource to select"
obj spec.vmstorage.vmBackup.extraEnvs.valueFrom.secretKeyRef
"Selects a key of a secret in the pod's namespace"
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.secretKeyRef.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.secretKeyRef.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vmstorage.vmBackup.extraEnvs.valueFrom.secretKeyRef.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.vmstorage.vmBackup.image
"Image - docker image settings for VMBackuper"
fn spec.vmstorage.vmBackup.image.withPullPolicy
withPullPolicy(pullPolicy)
"PullPolicy describes how to pull docker image"
fn spec.vmstorage.vmBackup.image.withRepository
withRepository(repository)
"Repository contains name of docker image + it's repository if needed"
fn spec.vmstorage.vmBackup.image.withTag
withTag(tag)
"Tag contains desired docker image version"
obj spec.vmstorage.vmBackup.resources
"Resources container resource request and limits, https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\nif not defined default resources from operator config will be used"
fn spec.vmstorage.vmBackup.resources.withClaims
withClaims(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
fn spec.vmstorage.vmBackup.resources.withClaimsMixin
withClaimsMixin(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
Note: This function appends passed data to existing values
fn spec.vmstorage.vmBackup.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmstorage.vmBackup.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.vmstorage.vmBackup.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.vmstorage.vmBackup.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.vmstorage.vmBackup.resources.claims
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\n\nThis field is immutable. It can only be set for containers."
fn spec.vmstorage.vmBackup.resources.claims.withName
withName(name)
"Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container."
obj spec.vmstorage.vmBackup.restore
"Restore Allows to enable restore options for pod\nRead more"
obj spec.vmstorage.vmBackup.restore.onStart
"OnStart defines configuration for restore on pod start"
fn spec.vmstorage.vmBackup.restore.onStart.withEnabled
withEnabled(enabled)
"Enabled defines if restore on start enabled"
obj spec.vmstorage.vmBackup.volumeMounts
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment definition.\nVolumeMounts specified will be appended to other VolumeMounts in the vmbackupmanager container,\nthat are generated as a result of StorageSpec objects."
fn spec.vmstorage.vmBackup.volumeMounts.withMountPath
withMountPath(mountPath)
"Path within the container at which the volume should be mounted. Must\nnot contain ':'."
fn spec.vmstorage.vmBackup.volumeMounts.withMountPropagation
withMountPropagation(mountPropagation)
"mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None)."
fn spec.vmstorage.vmBackup.volumeMounts.withName
withName(name)
"This must match the Name of a Volume."
fn spec.vmstorage.vmBackup.volumeMounts.withReadOnly
withReadOnly(readOnly)
"Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false."
fn spec.vmstorage.vmBackup.volumeMounts.withRecursiveReadOnly
withRecursiveReadOnly(recursiveReadOnly)
"RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\n\nIf this field is not specified, it is treated as an equivalent of Disabled."
fn spec.vmstorage.vmBackup.volumeMounts.withSubPath
withSubPath(subPath)
"Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root)."
fn spec.vmstorage.vmBackup.volumeMounts.withSubPathExpr
withSubPathExpr(subPathExpr)
"Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive."
obj spec.vmstorage.volumeMounts
"VolumeMounts allows configuration of additional VolumeMounts on the output Deployment/StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the Application container"
fn spec.vmstorage.volumeMounts.withMountPath
withMountPath(mountPath)
"Path within the container at which the volume should be mounted. Must\nnot contain ':'."
fn spec.vmstorage.volumeMounts.withMountPropagation
withMountPropagation(mountPropagation)
"mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None)."
fn spec.vmstorage.volumeMounts.withName
withName(name)
"This must match the Name of a Volume."
fn spec.vmstorage.volumeMounts.withReadOnly
withReadOnly(readOnly)
"Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false."
fn spec.vmstorage.volumeMounts.withRecursiveReadOnly
withRecursiveReadOnly(recursiveReadOnly)
"RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\n\nIf this field is not specified, it is treated as an equivalent of Disabled."
fn spec.vmstorage.volumeMounts.withSubPath
withSubPath(subPath)
"Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root)."
fn spec.vmstorage.volumeMounts.withSubPathExpr
withSubPathExpr(subPathExpr)
"Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive."