utils

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyK8sNodePoolsNamesFromCurrentState added in v0.4.1

func CopyK8sNodePoolsNamesFromCurrentState(used map[string]struct{}, nodepool string, current, desired *pb.K8Scluster)

CopyK8sNodePoolsNamesFromCurrentState copies the generated hash from an existing reference in the current state to the desired state.

func CopyLbNodePoolNamesFromCurrentState added in v0.4.1

func CopyLbNodePoolNamesFromCurrentState(used map[string]struct{}, nodepool string, current, desired []*pb.LBcluster)

CopyLbNodePoolNamesFromCurrentState copies the generated hash from an existing reference in the current state to the desired state.

func CreateK8sCluster

func CreateK8sCluster(unmarshalledManifest *manifest.Manifest) ([]*pb.K8Scluster, error)

CreateK8sCluster reads the unmarshalled manifest and creates desired state for Kubernetes clusters. Returns slice of *pb.K8Scluster if successful, nil otherwise

func CreateLBCluster

func CreateLBCluster(unmarshalledManifest *manifest.Manifest) ([]*pb.LBcluster, error)

CreateLBCluster reads the unmarshalled manifest and creates loadbalancer clusters based on it. Returns slice of *pb.LBcluster if successful, nil otherwise along with the error.

func FindNodePoolReferences added in v0.4.1

func FindNodePoolReferences(name string, nodePools []*pb.NodePool) []*pb.NodePool

FindNodePoolReferences find all nodepools that share the given name.

func UpdateK8sClusters

func UpdateK8sClusters(newConfig *pb.Config) error

UpdateK8sClusters updates the desired state of the kubernetes clusters based on the current state returns error if failed, nil otherwise

func UpdateLBClusters

func UpdateLBClusters(newConfig *pb.Config) error

UpdateLBClusters updates the desired state of the loadbalancer clusters based on the current state returns error if failed, nil otherwise

Types

This section is empty.

Jump to

Keyboard shortcuts

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