constantes

package
v1.27.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResourceNameCores is string name for cores. It's used by ResourceLimiter.
	ResourceNameCores = "cpu"
	// ResourceNameMemory is string name for memory. It's used by ResourceLimiter.
	// Memory should always be provided in bytes.
	ResourceNameMemory = "memory"
	// ResourceNameNodes is string name for node. It's used by ResourceLimiter.
	ResourceNameNodes = "nodes"

	// ResourceNameManagedNodeDisk
	ResourceNameManagedNodeDisk = "disk"
	// ResourceNameManagedNodeMemory
	ResourceNameManagedNodeMemory = "memory"
	// ResourceNameManagedNodeCores
	ResourceNameManagedNodeCores = "cpus"
)
View Source
const (
	// NodeLabelControlPlaneRole k8s annotation
	NodeLabelControlPlaneRole = "node-role.kubernetes.io/control-plane"

	// NodeLabelMasterRole k8s annotation
	NodeLabelMasterRole = "node-role.kubernetes.io/master"

	// NodeLabelWorkerRole k8s annotation
	NodeLabelWorkerRole = "node-role.kubernetes.io/worker"

	// NodeLabelTopologyRegion topology label
	NodeLabelTopologyRegion = "topology.kubernetes.io/region"

	// NodeLabelTopologyZone topology label
	NodeLabelTopologyZone = "topology.kubernetes.io/zone"

	// AnnotationNodeGroupName k8s annotation
	AnnotationNodeGroupName = "cluster.autoscaler.nodegroup/name"

	// AnnotationInstanceID k8s annotation
	AnnotationInstanceID = "cluster.autoscaler.nodegroup/instance-id"

	// AnnotationInstanceName k8s annotation
	AnnotationInstanceName = "cluster.autoscaler.nodegroup/instance-name"

	// AnnotationNodeIndex k8s annotation
	AnnotationNodeIndex = "cluster.autoscaler.nodegroup/node-index"

	// AnnotationNodeAutoProvisionned k8s annotation
	AnnotationNodeAutoProvisionned = "cluster.autoscaler.nodegroup/autoprovision"

	// AnnotationNodeManaged k8s annotation
	AnnotationNodeManaged = "cluster.autoscaler.nodegroup/managed"

	// AnnotationScaleDownDisabled k8s annotation
	AnnotationScaleDownDisabled = "cluster-autoscaler.kubernetes.io/scale-down-disabled"
)
View Source
const (
	// CloudProviderError is an error related to underlying infrastructure
	CloudProviderError = "cloudProviderError"

	// APICallError is an error related to communication with k8s API server
	APICallError = "apiCallError"

	// InternalError is an error inside Cluster Autoscaler
	InternalError = "internalError"

	// TransientError is an error that causes us to skip a single loop, but
	// does not require any additional action.
	TransientError = "transientError"
)
View Source
const (
	// ProviderName string
	ProviderName = "grpc"

	// ErrMismatchingProvider error msg
	ErrMismatchingProvider = "secret doesn't match with target server"

	// ErrNodeGroupNotFound error msg
	ErrNodeGroupNotFound = "node group %s not found"

	// ErrNodeGroupForNodeNotFound error msg
	ErrNodeGroupForNodeNotFound = "nodeGroup %s not found for Node %s"

	// ErrNodeNotFoundInNodeGroup error msg
	ErrNodeNotFoundInNodeGroup = "the node %s not found in node group %s"

	// ErrMachineTypeNotFound error msg
	ErrMachineTypeNotFound = "machine type %s not found"

	// ErrNodeGroupAlreadyExists error msg
	ErrNodeGroupAlreadyExists = "can't create node group: %s, already exists"

	// ErrUnableToCreateNodeGroup error msg
	ErrUnableToCreateNodeGroup = "can't create node group: %s, reason: %v"

	// ErrUnableToLaunchNodeGroupNotCreated error msg
	ErrUnableToLaunchNodeGroupNotCreated = "unable to launch group: %s, reason: node group is not created"

	// ErrUnableToLaunchNodeGroup error msg
	ErrUnableToLaunchNodeGroup = "unable to launch group: %s, fail to launch some VMs"

	// ErrUnableToDeleteNodeGroup error msg
	ErrUnableToDeleteNodeGroup = "can't delete node group: %s, reason: %v"

	// ErrCantDecodeNodeID error msg
	ErrCantDecodeNodeID = "node providerID %s not conform"

	// ErrCantUnmarshallNodeWithReason error msg
	ErrCantUnmarshallNodeWithReason = "can't unmarshall node definition:%s, reason: %v"

	// ErrCantUnmarshallNode error msg
	ErrCantUnmarshallNode = "can't unmarshall node definition[%d] in group %s"

	// ErrUnableToDeleteNode error msg
	ErrUnableToDeleteNode = "can't delete node: %s, because not owned by node group: %s"

	// ErrMinSizeReached error msg
	ErrMinSizeReached = "min size reached for group: %s, nodes will not be deleted"

	// ErrIncreaseSizeMustBePositive error msg
	ErrIncreaseSizeMustBePositive = "size increase must be positive"

	// ErrIncreaseSizeTooLarge error msg
	ErrIncreaseSizeTooLarge = "size increase too large, desired: %d max: %d"

	// ErrDecreaseSizeMustBeNegative error msg
	ErrDecreaseSizeMustBeNegative = "size decrease must be negative"

	// ErrDecreaseSizeAttemptDeleteNodes error msg
	ErrDecreaseSizeAttemptDeleteNodes = "attempt to delete existing nodes, targetSize: %d delta: %d existingNodes: %d"

	// ErrUnableToLaunchVM error msg
	ErrUnableToLaunchVM = "unable to launch the VM owned by node: %s, reason: %v"

	// ErrUnableToLaunchVMNodeGroupNotReady error msg
	ErrUnableToLaunchVMNodeGroupNotReady = "unable to launch the VM owned by node: %s, reason: launch group is not ready"

	// ErrUnableToDeleteVM error msg
	ErrUnableToDeleteVM = "unable to delete the VM owned by node: %s, reason: %v"

	// ErrVMAlreadyCreated error msg
	ErrVMAlreadyCreated = "unable to launch VM, %s is already created"

	// ErrVMAlreadyExists error msg
	ErrVMAlreadyExists = "the vm named: %s is already exists"

	// ErrUnableToMountPath error msg
	ErrUnableToMountPath = "unable to mount host path:%s into guest:%s for node:%s, reason: %v"

	// ErrTempFile error msg
	ErrTempFile = "can't create temp file, reason: %v"

	// ErrGetVMInfoFailed error msg
	ErrGetVMInfoFailed = "can't get the info for VM: %s, reason: %v"

	// ErrAutoScalerInfoNotFound error msg
	ErrAutoScalerInfoNotFound = "can't find the VM info from AutoScaler for VM: %s"

	// ErrManagedInfoNotFound error msg
	ErrManagedNodeNotFound = "can't find the VM info from AutoScaler for UID: %s"

	// ErrKubeAdmJoinFailed error msg
	ErrKubeAdmJoinFailed = "unable to join the master kubernetes node for VM: %s, reason: %v"

	// ErrKubeAdmJoinNotRunning error msg
	ErrKubeAdmJoinNotRunning = "could not join kubernetes master node, the VM: %s is not running"

	// ErrStopVMFailed error msg
	ErrStopVMFailed = "could not stop VM: %s, reason: %v"

	// ErrStartVMFailed error msg
	ErrStartVMFailed = "could not start VM: %s, reason: %v"

	// ErrRegisterDNSVMFailed error msg
	ErrRegisterDNSVMFailed = "could not register route53 record VM: %s, reason: %v"

	// ErrDeleteVMFailed error msg
	ErrDeleteVMFailed = "could not delete VM: %s, reason: %v"

	// ErrUpdateEtcdSslFailed msg
	ErrUpdateEtcdSslFailed = "could not install etcd ssl on VM: %s, reason: %v"

	// ErrRecopyKubernetesPKIFailed msg
	ErrRecopyKubernetesPKIFailed = "could not copy kubernetes pki on VM: %s, reason: %v"

	// ErrVMNotFound error msg
	ErrVMNotFound = "unable to find VM: %s"

	// ErrZoneIDNotFound error msg
	ErrZoneIDNotFound = "unable to find zone: %s"

	// ErrVMStopFailed error msg
	ErrVMStopFailed = "unable to stop VM: %s before delete"

	// ErrPodListReturnError error msg
	ErrPodListReturnError = "unable to list pods on node %s, reason: %v"

	// ErrNodeGroupCleanupFailOnVM error msg
	ErrNodeGroupCleanupFailOnVM = "on node group: %s, failed to delete VM: %s, reason: %v"

	// ErrUncordonNodeReturnError error msg
	ErrUncordonNodeReturnError = "uncordon node: %s got error: %s"

	// ErrCordonNodeReturnError error msg
	ErrCordonNodeReturnError = "cordon node: %s got error: %s"

	// ErrDrainNodeReturnError error msg
	ErrDrainNodeReturnError = "drain node: %s got error: %s"

	// ErrGetNodeReturnError error msg
	ErrGetNodeReturnError = "get node: %s got error: %s"

	// ErrDeleteNodeReturnError error msg
	ErrDeleteNodeReturnError = "delete node: %s got error: %s"

	// ErrLabelNodeReturnError error msg
	ErrLabelNodeReturnError = "set labels on node: %s got error: %s"

	// ErrTaintNodeReturnError error msg
	ErrTaintNodeReturnError = "taint node: %s got error: %s"

	// ErrAnnoteNodeReturnError error msg
	ErrAnnoteNodeReturnError = "set annotations on node: %s got error: %s"

	// ErrMissingNodeAnnotationError error msg
	ErrMissingNodeAnnotationError = "missing mandatories annotations on node: %s"

	// ErrNotImplemented error msg
	ErrNotImplemented = "not implemented"

	// ErrNodeIsNotReady error msg
	ErrNodeIsNotReady = "node %s is not ready"

	// ErrUnableToAutoProvisionNodeGroup error msg
	ErrUnableToAutoProvisionNodeGroup = "warning can't autoprovision node group, reason: %v"

	// ErrUnmarshallingError error msg
	ErrUnmarshallingError = "unable to unmarshall node: %s as json, reason: %v"

	// ErrMarshallingError error msg
	ErrMarshallingError = "unable to marshall node: %s as json, reason: %v"

	// ErrProviderIDNotConfigured error msg
	ErrProviderIDNotConfigured = "can't set provider ID for node: %s, reason: %v"

	// ErrVMNotProvisionnedByMe error msg
	ErrVMNotProvisionnedByMe = "the VM: %s is not provisionned by me"

	// ErrFailedToLoadServerState error msg
	ErrFailedToLoadServerState = "failed to load server state, reason: %v"

	// ErrFailedToSaveServerState error msg
	ErrFailedToSaveServerState = "failed to save server state, reason: %v"

	// ErrRsyncError error msg
	ErrRsyncError = "can't rsync folder for VM: %s, %s, reason: %v"

	// WarnFailedVMNotDeleted warn msg
	WarnFailedVMNotDeleted = "the failed VM:%s is not deleted because status is:%s"

	// ErrWrongStateMachine error msg
	ErrWrongStateMachine = "unexpected instance state %s for instance %s, expected prending or running"

	// ErrWaitIPTimeout error msg
	ErrWaitIPTimeout = "unable to SSH %s, reason: %v"

	// ErrCantCreateVMAlreadyExist error msg
	ErrCantCreateVMAlreadyExist = "unable to create VM %s, because another one exists"

	// ErrPodEvictionAborted
	ErrPodEvictionAborted = "pod eviction aborted"

	// ErrUndefinedPod err msg
	ErrUndefinedPod = "cannot get pod %s/%s, reason: %v"

	// ErrCannotEvictPod err msg
	ErrCannotEvictPod = "cannot evict pod %s/%s, reason: %v"

	// ErrUnableToConfirmPodEviction err msg
	ErrUnableToConfirmPodEviction = "cannot confirm pod %s/%s was deleted, reason: %v"

	// ErrUnableToGetPodListOnNode err msg
	ErrUnableToGetPodListOnNode = "cannot get pods for node %s, reason: %v"

	// ErrUnableEvictAllPodsOnNode err msg
	ErrUnableEvictAllPodsOnNode = "cannot evict all pods on node: %s, reason: %v"

	// ErrTimeoutWhenWaitingEvictions err msg
	ErrTimeoutWhenWaitingEvictions = "timed out waiting for evictions to complete on node: %s"

	// ErrFatalMissingSSHKey err msg
	ErrFatalMissingSSHKey = "%s ssh key not found"

	// ErrFatalEtcdMissingOrUnreadable err msg
	ErrFatalEtcdMissingOrUnreadable = "%s etcd certs directory is missing or unreadable"

	// ErrFatalKubernetesPKIMissingOrUnreadable err msg
	ErrFatalKubernetesPKIMissingOrUnreadable = "%s kubernetes pki directory is missing or unreadable"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL