Documentation ¶
Index ¶
- func ClusterResourceUpToDate(old, new *kopsapi.ClusterSpec) bool
- func CreateClusterSpec(cr *v1alpha1.Kops) *kopsapi.Cluster
- func CreateInstanceGroupSpec(cr kopsapi.InstanceGroupSpec) *kopsapi.InstanceGroup
- func ErrNotFound(err error) bool
- func EvaluateKopsValidationResult(validation *validation.ValidationCluster) (bool, []string)
- func GenerateKubeConfig(kopsCluster *kopsapi.Cluster, kopsClientset kopsClient.Clientset, ...) ([]byte, error)
- func GetClusterStatus(kopsCluster *kopsapi.Cluster, cloud fi.Cloud) (*kopsapi.ClusterStatus, error)
- func GetKopsClientset(stateBucket, clusterName, domain string) (kopsClient.Clientset, error)
- func GetKubeconfigFromKopsState(kopsCluster *kopsapi.Cluster, kopsClientset kopsClient.Clientset, ...) (*rest.Config, error)
- func InstanceGroupListResourceUpToDate(old []kopsapi.InstanceGroupSpec, new *kopsapi.InstanceGroupList) bool
- func ValidateKopsCluster(kopsClientset kopsClient.Clientset, kopsCluster *kopsapi.Cluster, ...) (*validation.ValidationCluster, error)
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 ¶
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 ¶
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 ¶
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.