Documentation
¶
Overview ¶
Package types contains Kubeadm utility types.
Package types contains Kubeadm utility types.
Index ¶
- func KubeVersionToKubeadmAPIGroupVersion(v semver.Version) (schema.GroupVersion, error)
- func MarshalClusterConfigurationForVersion(clusterConfiguration *bootstrapv1.ClusterConfiguration, version semver.Version, ...) (string, error)
- func MarshalInitConfigurationForVersion(initConfiguration *bootstrapv1.InitConfiguration, version semver.Version) (string, error)
- func MarshalJoinConfigurationForVersion(joinConfiguration *bootstrapv1.JoinConfiguration, version semver.Version) (string, error)
- func UnmarshalClusterConfiguration(yaml string) (*bootstrapv1.ClusterConfiguration, *upstream.AdditionalData, error)
- func UnmarshalInitConfiguration(yaml string) (*bootstrapv1.InitConfiguration, error)
- func UnmarshalJoinConfiguration(yaml string) (*bootstrapv1.JoinConfiguration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubeVersionToKubeadmAPIGroupVersion ¶
func KubeVersionToKubeadmAPIGroupVersion(v semver.Version) (schema.GroupVersion, error)
KubeVersionToKubeadmAPIGroupVersion maps a Kubernetes version to the correct Kubeadm API Group supported.
func MarshalClusterConfigurationForVersion ¶
func MarshalClusterConfigurationForVersion(clusterConfiguration *bootstrapv1.ClusterConfiguration, version semver.Version, data *upstream.AdditionalData) (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 MarshalInitConfigurationForVersion ¶
func MarshalInitConfigurationForVersion(initConfiguration *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(joinConfiguration *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, *upstream.AdditionalData, 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 UnmarshalInitConfiguration ¶ added in v1.4.5
func UnmarshalInitConfiguration(yaml string) (*bootstrapv1.InitConfiguration, error)
UnmarshalInitConfiguration tries to translate a Kubeadm API yaml back to the InitConfiguration type. NOTE: The yaml could be any of the known formats for the kubeadm InitConfiguration type.
func UnmarshalJoinConfiguration ¶ added in v1.4.5
func UnmarshalJoinConfiguration(yaml string) (*bootstrapv1.JoinConfiguration, error)
UnmarshalJoinConfiguration tries to translate a Kubeadm API yaml back to the JoinConfiguration type. NOTE: The yaml could be any of the known formats for the kubeadm JoinConfiguration type.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package upstream contains types to handle additional data during Marshal or UnMarshal of kubeadm's types.
|
Package upstream contains types to handle additional data during Marshal or UnMarshal of kubeadm's types. |
|
Package upstreamhub contains hub types for conversion to kubeadm upstream types.
|
Package upstreamhub contains hub types for conversion to kubeadm upstream types. |
|
Package upstreamv1beta3 contains a mirror of kubeadm API v1beta3 API, required because it is not possible to import k/K.
|
Package upstreamv1beta3 contains a mirror of kubeadm API v1beta3 API, required because it is not possible to import k/K. |
|
Package upstreamv1beta4 contains a mirror of kubeadm API v1beta4 API, required because it is not possible to import k/K.
|
Package upstreamv1beta4 contains a mirror of kubeadm API v1beta4 API, required because it is not possible to import k/K. |