utils

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTerraform

func ApplyTerraform(ctx context.Context, workingDir string) error

ApplyTerraform just applies the already created terraform files

func BuildCloud

func BuildCloud(kopscluster *kopsapi.Cluster) (fi.Cloud, error)

func CreateTerraformBackendFile

func CreateTerraformBackendFile(bucket, clusterName, backendPath string) error

CreateTerraformBackendFile creates the backend file for the remote state

func EvaluateKopsValidationResult

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

func GetBucketName

func GetBucketName(configBase string) (string, error)

func GetKopsClientset

func GetKopsClientset(configBase string) (simple.Clientset, error)

func GetKubeconfigFromKopsState

func GetKubeconfigFromKopsState(kopsCluster *kopsapi.Cluster, kopsClientset simple.Clientset) (*rest.Config, error)

func KopsClusterValidation

func KopsClusterValidation(object runtime.Object, recorder record.EventRecorder, log logr.Logger, validation *validation.ValidationCluster) (bool, error)

func ReconcileKopsSecrets

func ReconcileKopsSecrets(ctx context.Context, k8sClient client.Client, secretStore fi.SecretStore, kopsControlPlane *v1alpha1.KopsControlPlane, k8sSecretKey client.ObjectKey) error

func ValidateKopsCluster

func ValidateKopsCluster(kopsClientset simple.Clientset, kopsCluster *kopsapi.Cluster, igs *kopsapi.InstanceGroupList) (*validation.ValidationCluster, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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