Documentation
¶
Index ¶
- Constants
- func ConfigurationToYAML(obj runtime.Object) (string, error)
- func GetCodecs() serializer.CodecFactory
- func GetControlplaneInitScript() string
- func GetControlplaneJoinScript() string
- func GetKubeProxyCodecs() serializer.CodecFactory
- func GetNodeJoinScript() string
- func KubeProxyConfigurationToYAML(obj runtime.Object) (string, error)
- func SetClusterConfigurationOverrides(cluster ICluster, base *kubeadmv1beta1.ClusterConfiguration, ...) (*kubeadmv1beta1.ClusterConfiguration, error)
- func SetControlPlaneJoinConfigurationOverrides(base *kubeadmv1beta1.JoinConfiguration, localIP string) *kubeadmv1beta1.JoinConfiguration
- func SetDefaultClusterConfiguration(cluster ICluster, base *kubeadmv1beta1.ClusterConfiguration, ...) (*kubeadmv1beta1.ClusterConfiguration, error)
- func SetInitConfigurationOverrides(base *kubeadmv1beta1.InitConfiguration, hostName string) *kubeadmv1beta1.InitConfiguration
- func SetJoinNodeConfigurationOverrides(caCertHash, bootstrapToken, apiServerEndpoint string, ...) *kubeadmv1beta1.JoinConfiguration
- func SetKubeProxyConfigurationOverrides(base *kubeproxyconfigv1alpha1.KubeProxyConfiguration, clusterCIDR string) *kubeproxyconfigv1alpha1.KubeProxyConfiguration
- type ICluster
Constants ¶
const ( // HostnameLookup uses the instance metadata service to lookup its own hostname. HostnameLookup = "{{ ds.meta_data.hostname }}" // ContainerdSocket is the expected path to containerd socket. ContainerdSocket = "/var/run/containerd/containerd.sock" // APIServerBindPort is the default port for the kube-apiserver to bind to. APIServerBindPort = 6443 // CloudProvider is the name of the cloud provider passed to various // kubernetes components. CloudProvider = "external" )
Variables ¶
This section is empty.
Functions ¶
func ConfigurationToYAML ¶
ConfigurationToYAML converts a kubeadm configuration type to its YAML representation.
func GetCodecs ¶
func GetCodecs() serializer.CodecFactory
GetCodecs returns a type that can be used to deserialize most kubeadm configuration types.
func GetControlplaneInitScript ¶
func GetControlplaneInitScript() string
func GetControlplaneJoinScript ¶
func GetControlplaneJoinScript() string
func GetKubeProxyCodecs ¶
func GetKubeProxyCodecs() serializer.CodecFactory
func GetNodeJoinScript ¶
func GetNodeJoinScript() string
func SetClusterConfigurationOverrides ¶
func SetClusterConfigurationOverrides(cluster ICluster, base *kubeadmv1beta1.ClusterConfiguration, interalIP, eIP string) (*kubeadmv1beta1.ClusterConfiguration, error)
SetClusterConfigurationOverrides will modify the supplied configuration with certain values
func SetControlPlaneJoinConfigurationOverrides ¶
func SetControlPlaneJoinConfigurationOverrides(base *kubeadmv1beta1.JoinConfiguration, localIP string) *kubeadmv1beta1.JoinConfiguration
SetControlPlaneJoinConfigurationOverrides user input for kubeadm join configuration during a control plane join action.
func SetDefaultClusterConfiguration ¶
func SetDefaultClusterConfiguration(cluster ICluster, base *kubeadmv1beta1.ClusterConfiguration, internalIP, eIP string) (*kubeadmv1beta1.ClusterConfiguration, error)
SetDefaultClusterConfiguration sets default dynamic values without overriding user specified values.
func SetInitConfigurationOverrides ¶
func SetInitConfigurationOverrides(base *kubeadmv1beta1.InitConfiguration, hostName string) *kubeadmv1beta1.InitConfiguration
SetInitConfigurationOverrides overrides user input on particular fields for the kubeadm InitConfiguration.
func SetJoinNodeConfigurationOverrides ¶
func SetJoinNodeConfigurationOverrides( caCertHash, bootstrapToken, apiServerEndpoint string, base *kubeadmv1beta1.JoinConfiguration, hostName string, ) *kubeadmv1beta1.JoinConfiguration
SetJoinNodeConfigurationOverrides overrides user input for certain fields of the kubeadm JoinConfiguration during a worker node join.
func SetKubeProxyConfigurationOverrides ¶
func SetKubeProxyConfigurationOverrides(base *kubeproxyconfigv1alpha1.KubeProxyConfiguration, clusterCIDR string) *kubeproxyconfigv1alpha1.KubeProxyConfiguration
SetKubeProxyConfigurationOverrides overrides user input on particular fields for the kubeadm KubeProxyConfiguration