Documentation ¶
Overview ¶
Package utils contains Kubeadm utility types.
Package utils contains Kubeadm utility types.
Index ¶
- func KubeVersionToKubeadmAPIGroupVersion(version semver.Version) (schema.GroupVersion, error)
- func MarshalClusterConfigurationForVersion(obj *bootstrapv1.ClusterConfiguration, version semver.Version) (string, error)
- func MarshalClusterStatusForVersion(obj *bootstrapv1.ClusterStatus, version semver.Version) (string, error)
- func MarshalInitConfigurationForVersion(obj *bootstrapv1.InitConfiguration, version semver.Version) (string, error)
- func MarshalJoinConfigurationForVersion(obj *bootstrapv1.JoinConfiguration, version semver.Version) (string, error)
- func UnmarshalClusterConfiguration(yaml string) (*bootstrapv1.ClusterConfiguration, error)
- func UnmarshalClusterStatus(yaml string) (*bootstrapv1.ClusterStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubeVersionToKubeadmAPIGroupVersion ¶
func KubeVersionToKubeadmAPIGroupVersion(version semver.Version) (schema.GroupVersion, error)
KubeVersionToKubeadmAPIGroupVersion maps a Kubernetes version to the correct Kubeadm API Group supported.
func MarshalClusterConfigurationForVersion ¶
func MarshalClusterConfigurationForVersion(obj *bootstrapv1.ClusterConfiguration, version semver.Version) (string, error)
MarshalClusterConfigurationForVersion converts a Cluster API ClusterConfiguration type to the kubeadm API type for the given Kubernetes Version. NOTE: This assumes Kubernetes Version equals to kubeadm version.
func MarshalClusterStatusForVersion ¶
func MarshalClusterStatusForVersion(obj *bootstrapv1.ClusterStatus, version semver.Version) (string, error)
MarshalClusterStatusForVersion converts a Cluster API ClusterStatus type to the kubeadm API type for the given Kubernetes Version. NOTE: This assumes Kubernetes Version equals to kubeadm version.
func MarshalInitConfigurationForVersion ¶
func MarshalInitConfigurationForVersion(obj *bootstrapv1.InitConfiguration, version semver.Version) (string, error)
MarshalInitConfigurationForVersion converts a Cluster API InitConfiguration type to the kubeadm API type for the given Kubernetes Version. NOTE: This assumes Kubernetes Version equals to kubeadm version.
func MarshalJoinConfigurationForVersion ¶
func MarshalJoinConfigurationForVersion(obj *bootstrapv1.JoinConfiguration, version semver.Version) (string, error)
MarshalJoinConfigurationForVersion converts a Cluster API JoinConfiguration type to the kubeadm API type for the given Kubernetes Version. NOTE: This assumes Kubernetes Version equals to kubeadm version.
func UnmarshalClusterConfiguration ¶
func UnmarshalClusterConfiguration(yaml string) (*bootstrapv1.ClusterConfiguration, error)
UnmarshalClusterConfiguration tries to translate a Kubeadm API yaml back to the Cluster API ClusterConfiguration type. NOTE: The yaml could be any of the known formats for the kubeadm ClusterConfiguration type.
func UnmarshalClusterStatus ¶
func UnmarshalClusterStatus(yaml string) (*bootstrapv1.ClusterStatus, error)
UnmarshalClusterStatus tries to translate a Kubeadm API yaml back to the Cluster API ClusterStatus type. NOTE: The yaml could be any of the known formats for the kubeadm ClusterStatus type.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package v1beta1 contains a mirror of kubeadm API v1beta1 API, required because it is not possible to import k/K.
|
Package v1beta1 contains a mirror of kubeadm API v1beta1 API, required because it is not possible to import k/K. |
Package v1beta2 contains a mirror of kubeadm API v1beta2 API, required because it is not possible to import k/K.
|
Package v1beta2 contains a mirror of kubeadm API v1beta2 API, required because it is not possible to import k/K. |
Package v1beta3 contains a mirror of kubeadm API v1beta3 API, required because it is not possible to import k/K.
|
Package v1beta3 contains a mirror of kubeadm API v1beta3 API, required because it is not possible to import k/K. |