types

package
v1.11.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 13 Imported by: 1

README

Kubeadm types

These types were copied in from kubernetes/kubernetes.

The types found in kubernetes/kubernetes are incompatible with controller-gen@v0.2.

controller-gen@v0.2 requires that all fields of all embedded types have json struct tags and kubeadm types are missing a few.

If the kubeadm types ever escape kubernetes/kubernetes then we will adopt those assuming the types do all have json struct tags.

Documentation

Overview

Package types contains Kubeadm utility types.

Package types contains Kubeadm utility types.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL