nodepool

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NodePoolNameFormat is the format for the fully qualified name of a node pool.
	NodePoolNameFormat = "%s/nodePools/%s"
)

Variables

This section is empty.

Functions

func GenerateAutoscaling

func GenerateAutoscaling(in *v1beta1.NodePoolAutoscaling, pool *container.NodePool)

GenerateAutoscaling generates *container.Autoscaling from *Autoscaling.

func GenerateConfig

func GenerateConfig(in *v1beta1.NodeConfig, pool *container.NodePool)

GenerateConfig generates *container.Config from *NodeConfig.

func GenerateManagement

func GenerateManagement(in *v1beta1.NodeManagementSpec, pool *container.NodePool)

GenerateManagement generates *container.NodeManagement from *NodeManagementSpec.

func GenerateMaxPodsConstraint

func GenerateMaxPodsConstraint(in *v1beta2.MaxPodsConstraint, pool *container.NodePool)

GenerateMaxPodsConstraint generates *container.MaxPodsConstraint from *MaxPodsConstraint.

func GenerateNodePool

func GenerateNodePool(name string, in v1beta1.NodePoolParameters, pool *container.NodePool)

GenerateNodePool generates *container.NodePool instance from NodePoolParameters.

func GenerateNodePoolUpdate

func GenerateNodePoolUpdate(in *v1beta1.NodePoolParameters) *container.UpdateNodePoolRequest

GenerateNodePoolUpdate produces NodePoolObservation object from *container.NodePool object.

func GenerateObservation

func GenerateObservation(in container.NodePool) v1beta1.NodePoolObservation

GenerateObservation produces NodePoolObservation object from *container.NodePool object.

func GenerateUpgradeSettings

func GenerateUpgradeSettings(in *v1beta2.UpgradeSettings, pool *container.NodePool)

GenerateUpgradeSettings generates *container.UpgradeSettings from *UpgradeSettings.

func GetFullyQualifiedName

func GetFullyQualifiedName(p v1beta1.NodePoolParameters, name string) string

GetFullyQualifiedName builds the fully qualified name of the cluster.

func LateInitializeSpec

func LateInitializeSpec(spec *v1beta1.NodePoolParameters, in container.NodePool)

LateInitializeSpec fills unassigned fields with the values in container.NodePool object.

Types

type UpdateFn

UpdateFn returns a function that updates a node pool.

func IsUpToDate

func IsUpToDate(name string, in *v1beta1.NodePoolParameters, observed *container.NodePool) (bool, UpdateFn, error)

IsUpToDate checks whether current state is up-to-date compared to the given set of parameters.

Jump to

Keyboard shortcuts

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