config

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 19 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{
		kubeonev1beta1.SchemeGroupVersion.String(): "",
		kubeonev1beta2.SchemeGroupVersion.String(): "",
	}

	// DeprecatedAPIs contains APIs which are deprecated
	DeprecatedAPIs = map[string]string{
		kubeonev1beta1.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 DefaultedV1Beta1KubeOneCluster

func DefaultedV1Beta1KubeOneCluster(versionedCluster *kubeonev1beta1.KubeOneCluster, tfOutput, credentialsFile []byte, logger logrus.FieldLogger) (*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 DefaultedV1Beta2KubeOneCluster added in v1.4.0

func DefaultedV1Beta2KubeOneCluster(versionedCluster *kubeonev1beta2.KubeOneCluster, tfOutput, credentialsFile []byte, logger logrus.FieldLogger) (*kubeoneapi.KubeOneCluster, error)

DefaultedV1Beta2KubeOneCluster converts a v1beta2 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 v1beta1 object to v1beta2

func SetKubeOneClusterDynamicDefaults

func SetKubeOneClusterDynamicDefaults(cluster *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