util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterResourceUpToDate

func ClusterResourceUpToDate(old, new *kopsapi.ClusterSpec) bool

ClusterResourceUpToDate checks if the cluster resource is up to date

func CreateClusterSpec

func CreateClusterSpec(cr *v1alpha1.Kops) *kopsapi.Cluster

CreateClusterSpec creates a cluster spec from a cluster object

func CreateInstanceGroupSpec

func CreateInstanceGroupSpec(cr kopsapi.InstanceGroupSpec) *kopsapi.InstanceGroup

CreateInstanceGroupSpec creates an instance group spec from an instance group object

func ErrNotFound

func ErrNotFound(err error) bool

ErrNotFound is an error indicating that the resource was not found

func EvaluateKopsValidationResult

func EvaluateKopsValidationResult(validation *validation.ValidationCluster) (bool, []string)

EvaluateKopsValidationResult evaluates a kops validation result

func GenerateKubeConfig

func GenerateKubeConfig(kopsCluster *kopsapi.Cluster, kopsClientset kopsClient.Clientset, kubernetesAPICertificateTTL time.Duration) ([]byte, error)

GenerateKubeConfig generates a kubeconfig for a given kops cluster

func GetClusterStatus

func GetClusterStatus(kopsCluster *kopsapi.Cluster, cloud fi.Cloud) (*kopsapi.ClusterStatus, error)

GetClusterStatus returns the cluster status

func GetKopsClientset

func GetKopsClientset(stateBucket, clusterName, domain string) (kopsClient.Clientset, error)

GetKopsClientset returns a kops client set for a given configBase

func GetKubeconfigFromKopsState

func GetKubeconfigFromKopsState(kopsCluster *kopsapi.Cluster, kopsClientset kopsClient.Clientset, kubernetesAPICertificateTTL time.Duration) (*rest.Config, error)

GetKubeconfigFromKopsState returns a kubeconfig for a given kops cluster

func InstanceGroupListResourceUpToDate

func InstanceGroupListResourceUpToDate(old []kopsapi.InstanceGroupSpec, new *kopsapi.InstanceGroupList) bool

InstanceGroupListResourceUpToDate checks if the instance group list resource is up to date

func ValidateKopsCluster

func ValidateKopsCluster(kopsClientset kopsClient.Clientset, kopsCluster *kopsapi.Cluster, igs *kopsapi.InstanceGroupList, kubernetesAPICertificateTTL time.Duration) (*validation.ValidationCluster, error)

ValidateKopsCluster validates a kops cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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