Documentation ¶
Index ¶
- Constants
- Variables
- func BytesToKubeOneCluster(cluster, tfOutput, credentialsFile []byte, logger logrus.FieldLogger) (*kubeoneapi.KubeOneCluster, error)
- func DefaultedV1Alpha1KubeOneCluster(versionedCluster *kubeonev1alpha1.KubeOneCluster, ...) (*kubeoneapi.KubeOneCluster, error)
- func DefaultedV1Beta1KubeOneCluster(versionedCluster *kubeonev1beta1.KubeOneCluster, ...) (*kubeoneapi.KubeOneCluster, error)
- func LoadKubeOneCluster(clusterCfgPath, tfOutputPath, credentialsFilePath string, ...) (*kubeoneapi.KubeOneCluster, error)
- func MigrateOldConfig(clusterFilePath string) (interface{}, error)
- func SetKubeOneClusterDynamicDefaults(cfg *kubeoneapi.KubeOneCluster, credentialsFile []byte) error
Constants ¶
const (
// KubeOneClusterKind is kind of the KubeOneCluster object
KubeOneClusterKind = "KubeOneCluster"
)
Variables ¶
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 ¶
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.