Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ServiceName is the name of the service of the cluster-autoscaler. ServiceName = "cluster-autoscaler" // SecretName is a constant for the secret name for the cluster-autoscaler's kubeconfig secret. SecretName = "cluster-autoscaler" // UserName is the name that should be used for the secret that the cluster-autoscaler uses to // authenticate itself with the kube-apiserver (e.g., the common name in its client certificate). UserName = "system:cluster-autoscaler" )
Variables ¶
View Source
var TimeoutWaitForManagedResource = 2 * time.Minute
TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy or deleted.
Functions ¶
func CentralLoggingConfiguration ¶ added in v1.13.0
func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)
CentralLoggingConfiguration returns a fluent-bit parser and filter for the cluster-autoscaler logs.
func NewBootstrapper ¶ added in v1.14.0
func NewBootstrapper(client client.Client, namespace string) component.DeployWaiter
NewBootstrapper creates a new instance of DeployWaiter for the cluster-autoscaler bootstrapper.
Types ¶
type ClusterAutoscaler ¶
type ClusterAutoscaler interface { component.DeployWaiter component.MonitoringComponent // SetSecrets sets the secrets. SetSecrets(Secrets) // SetNamespaceUID sets the UID of the namespace into which the cluster-autoscaler shall be deployed. SetNamespaceUID(types.UID) // SetMachineDeployments sets the machine deployments. SetMachineDeployments([]extensionsv1alpha1.MachineDeployment) }
ClusterAutoscaler contains functions for a cluster-autoscaler deployer.
func New ¶
func New( client client.Client, namespace string, image string, replicas int32, config *gardencorev1beta1.ClusterAutoscaler, ) ClusterAutoscaler
New creates a new instance of DeployWaiter for the cluster-autoscaler.
Click to show internal directories.
Click to hide internal directories.