config

package
v1.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KubeOneClusterKind is kind of the KubeOneCluster object
	KubeOneClusterKind = "KubeOneCluster"
)

Variables

View Source
var (
	// AllowedAPIs contains APIs which are allowed to be used
	AllowedAPIs = map[string]string{
		kubeonev1alpha1.SchemeGroupVersion.String(): "",
		kubeonev1beta1.SchemeGroupVersion.String():  "",
	}

	// DeprecatedAPIs contains APIs which are deprecated
	DeprecatedAPIs = map[string]string{
		kubeonev1alpha1.SchemeGroupVersion.String(): "",
	}
)

Functions

func BytesToKubeOneCluster

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

BytesToKubeOneCluster parses the bytes of the versioned KubeOneCluster manifests

func DefaultedV1Alpha1KubeOneCluster

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

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

func DefaultedV1Beta1KubeOneCluster

func DefaultedV1Beta1KubeOneCluster(versionedCluster *kubeonev1beta1.KubeOneCluster, tfOutput, credentialsFile []byte) (*kubeoneapi.KubeOneCluster, error)

DefaultedV1Beta1KubeOneCluster converts a v1beta1 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.FieldLogger) (*kubeoneapi.KubeOneCluster, error)

LoadKubeOneCluster returns the internal representation of the KubeOneCluster object parsed from the versioned KubeOneCluster manifest, Terraform output and credentials file

func MigrateOldConfig

func MigrateOldConfig(clusterFilePath string) (interface{}, error)

MigrateOldConfig migrates KubeOneCluster v1alpha1 object to v1beta1

func SetKubeOneClusterDynamicDefaults

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

SetKubeOneClusterDynamicDefaults sets the dynamic defaults for a given KubeOneCluster object

Types

This section is empty.

Jump to

Keyboard shortcuts

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