config

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToKubeOneCluster

func BytesToKubeOneCluster(cluster, tfOutput, credentialsFile []byte) (*kubeoneapi.KubeOneCluster, error)

BytesToKubeOneCluster returns the KubeOneCluster object parsed from the KubeOneCluster manifest and optionally Terraform output

func DefaultedKubeOneCluster

func DefaultedKubeOneCluster(versionedCluster *kubeonev1alpha1.KubeOneCluster, tfOutput, credentialsFile []byte) (*kubeoneapi.KubeOneCluster, error)

DefaultedKubeOneCluster converts a versioned KubeOneCluster object to an internal representation of KubeOneCluster object while sourcing information from Terraform output, applying default values and validating the KubeOneCluster object

func LoadKubeOneCluster

func LoadKubeOneCluster(clusterCfgPath, tfOutputPath, credentialsFilePath string, logger *logrus.Logger) (*kubeoneapi.KubeOneCluster, error)

LoadKubeOneCluster returns the KubeOneCluster object parsed from the KubeOneCluster configuration file and optionally Terraform output

func SetKubeOneClusterDynamicDefaults

func SetKubeOneClusterDynamicDefaults(cfg *kubeoneapi.KubeOneCluster, credentialsFile []byte) error

SetKubeOneClusterDynamicDefaults sets the dynamic defaults for a given KubeOneCluster object

func SourceKubeOneClusterFromTerraformOutput

func SourceKubeOneClusterFromTerraformOutput(terraformOutput []byte, cluster *kubeonev1alpha1.KubeOneCluster) error

SourceKubeOneClusterFromTerraformOutput sources information about the cluster from the Terraform output

Types

This section is empty.

Jump to

Keyboard shortcuts

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