Documentation ¶
Index ¶
- func BytesToKubeOneCluster(cluster, tfOutput, credentialsFile []byte) (*kubeoneapi.KubeOneCluster, error)
- func DefaultedKubeOneCluster(versionedCluster *kubeonev1alpha1.KubeOneCluster, ...) (*kubeoneapi.KubeOneCluster, error)
- func LoadKubeOneCluster(clusterCfgPath, tfOutputPath, credentialsFilePath string, ...) (*kubeoneapi.KubeOneCluster, error)
- func SetKubeOneClusterDynamicDefaults(cfg *kubeoneapi.KubeOneCluster, credentialsFile []byte) error
- func SourceKubeOneClusterFromTerraformOutput(terraformOutput []byte, cluster *kubeonev1alpha1.KubeOneCluster) error
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.