components

package
v1.26.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 22 Imported by: 170

Documentation

Index

Constants

View Source
const (
	DefaultEtcd3Version_1_20 = "3.4.13"
	DefaultEtcd3Version_1_22 = "3.5.6"
)

Variables

This section is empty.

Functions

func Image

func Image(component string, clusterSpec *kops.ClusterSpec, assetsBuilder *assets.AssetBuilder) (string, error)

Image returns the docker image name for the specified component

func IsBaseURL

func IsBaseURL(kubernetesVersion string) bool

func IsCertManagerEnabled added in v1.20.0

func IsCertManagerEnabled(cluster *kops.Cluster) bool

IsCertManagerEnabled returns true if the cluster has the capability to handle cert-manager PKI

func UsesCNI added in v1.18.0

func UsesCNI(networking *kops.NetworkingSpec) bool

UsesCNI returns true if the networking provider is a CNI plugin

func UsesKubenet

func UsesKubenet(networking *kops.NetworkingSpec) bool

UsesKubenet returns true if our networking is derived from kubenet

func WellKnownServiceIP

func WellKnownServiceIP(clusterSpec *kops.ClusterSpec, id int) (net.IP, error)

Types

type AWSCloudControllerManagerOptionsBuilder added in v1.21.3

type AWSCloudControllerManagerOptionsBuilder struct {
	*OptionsContext
}

AWSCloudControllerManagerOptionsBuilder adds options for the kubernetes controller manager to the model.

func (*AWSCloudControllerManagerOptionsBuilder) BuildOptions added in v1.21.3

func (b *AWSCloudControllerManagerOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions generates the configurations used for the AWS cloud controller manager manifest

type AWSEBSCSIDriverOptionsBuilder added in v1.20.1

type AWSEBSCSIDriverOptionsBuilder struct {
	*OptionsContext
}

AWSEBSCSIDriverOptionsBuilder adds options for the AWS EBS CSI driver to the model

func (*AWSEBSCSIDriverOptionsBuilder) BuildOptions added in v1.20.1

func (b *AWSEBSCSIDriverOptionsBuilder) BuildOptions(o interface{}) error

type CalicoOptionsBuilder added in v1.19.0

type CalicoOptionsBuilder struct {
	Context *OptionsContext
}

CalicoOptionsBuilder prepares settings related to the Calico CNI implementation.

func (*CalicoOptionsBuilder) BuildOptions added in v1.19.0

func (b *CalicoOptionsBuilder) BuildOptions(o interface{}) error

type CiliumOptionsBuilder added in v1.19.0

type CiliumOptionsBuilder struct {
	Context *OptionsContext
}

CiliumOptionsBuilder adds options for the cilium to the model

func (*CiliumOptionsBuilder) BuildOptions added in v1.19.0

func (b *CiliumOptionsBuilder) BuildOptions(o interface{}) error

type CloudConfigurationOptionsBuilder added in v1.20.0

type CloudConfigurationOptionsBuilder struct {
	Context *OptionsContext
}

CloudConfigurationOptionsBuilder prepares settings related to the backing cloud provider.

func (*CloudConfigurationOptionsBuilder) BuildOptions added in v1.20.0

func (b *CloudConfigurationOptionsBuilder) BuildOptions(o interface{}) error

type ClusterAutoscalerOptionsBuilder added in v1.19.0

type ClusterAutoscalerOptionsBuilder struct {
	*OptionsContext
}

ClusterAutoscalerOptionsBuilder adds options for cluster autoscaler to the model

func (*ClusterAutoscalerOptionsBuilder) BuildOptions added in v1.19.0

func (b *ClusterAutoscalerOptionsBuilder) BuildOptions(o interface{}) error

type ContainerdOptionsBuilder added in v1.18.0

type ContainerdOptionsBuilder struct {
	*OptionsContext
}

ContainerdOptionsBuilder adds options for containerd to the model

func (*ContainerdOptionsBuilder) BuildOptions added in v1.18.0

func (b *ContainerdOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for filling in the default setting for containerd daemon

type DefaultsOptionsBuilder

type DefaultsOptionsBuilder struct {
	Context *OptionsContext
}

DefaultsOptionsBuilder adds default options. This should come first!

func (*DefaultsOptionsBuilder) BuildOptions

func (b *DefaultsOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for cluster options

type DiscoveryOptionsBuilder added in v1.19.0

type DiscoveryOptionsBuilder struct {
	*OptionsContext
}

DiscoveryOptionsBuilder adds options for identity discovery to the model (mostly kube-apiserver)

func (*DiscoveryOptionsBuilder) BuildOptions added in v1.19.0

func (b *DiscoveryOptionsBuilder) BuildOptions(o interface{}) error

type DockerOptionsBuilder

type DockerOptionsBuilder struct {
	*OptionsContext
}

DockerOptionsBuilder adds options for docker to the model

func (*DockerOptionsBuilder) BuildOptions

func (b *DockerOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for filling in the default setting for docker daemon

type EtcdOptionsBuilder

type EtcdOptionsBuilder struct {
	*OptionsContext
}

EtcdOptionsBuilder adds options for etcd to the model

func (*EtcdOptionsBuilder) BuildOptions

func (b *EtcdOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for filling in the defaults for the etcd cluster model

type GCPCloudControllerManagerOptionsBuilder added in v1.23.0

type GCPCloudControllerManagerOptionsBuilder struct {
	*OptionsContext
}

func (*GCPCloudControllerManagerOptionsBuilder) BuildOptions added in v1.23.0

func (b *GCPCloudControllerManagerOptionsBuilder) BuildOptions(options interface{}) error

type GCPPDCSIDriverOptionsBuilder added in v1.23.0

type GCPPDCSIDriverOptionsBuilder struct {
	*OptionsContext
}

GCPPDCSIDriverOptionsBuilder adds options for the GCP PD CSI driver to the model

func (*GCPPDCSIDriverOptionsBuilder) BuildOptions added in v1.23.0

func (b *GCPPDCSIDriverOptionsBuilder) BuildOptions(o interface{}) error

type HetznerCloudControllerManagerOptionsBuilder added in v1.25.1

type HetznerCloudControllerManagerOptionsBuilder struct {
	*OptionsContext
}

HetznerCloudControllerManagerOptionsBuilder adds options for the kubernetes controller manager to the model.

func (*HetznerCloudControllerManagerOptionsBuilder) BuildOptions added in v1.25.1

func (b *HetznerCloudControllerManagerOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions generates the configurations used for the Hetzner cloud controller manager manifest

type KubeAPIServerOptionsBuilder

type KubeAPIServerOptionsBuilder struct {
	*OptionsContext
}

KubeAPIServerOptionsBuilder adds options for the apiserver to the model

func (*KubeAPIServerOptionsBuilder) BuildOptions

func (b *KubeAPIServerOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for filling in the default settings for the kube apiserver

type KubeControllerManagerOptionsBuilder

type KubeControllerManagerOptionsBuilder struct {
	*OptionsContext
}

KubeControllerManagerOptionsBuilder adds options for the kubernetes controller manager to the model.

func (*KubeControllerManagerOptionsBuilder) BuildOptions

func (b *KubeControllerManagerOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions generates the configurations used to create kubernetes controller manager manifest

type KubeDnsOptionsBuilder

type KubeDnsOptionsBuilder struct {
	Context *OptionsContext
}

KubeDnsOptionsBuilder adds options for kube-dns

func (*KubeDnsOptionsBuilder) BuildOptions

func (b *KubeDnsOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions fills in the kubedns model

type KubeProxyOptionsBuilder

type KubeProxyOptionsBuilder struct {
	Context *OptionsContext
}

KubeProxyOptionsBuilder adds options for kube-proxy to the model

func (*KubeProxyOptionsBuilder) BuildOptions

func (b *KubeProxyOptionsBuilder) BuildOptions(o interface{}) error

type KubeSchedulerOptionsBuilder

type KubeSchedulerOptionsBuilder struct {
	*OptionsContext
}

KubeSchedulerOptionsBuilder adds options for kube-scheduler to the model

func (*KubeSchedulerOptionsBuilder) BuildOptions

func (b *KubeSchedulerOptionsBuilder) BuildOptions(o interface{}) error

type KubeletOptionsBuilder

type KubeletOptionsBuilder struct {
	*OptionsContext
}

KubeletOptionsBuilder adds options for kubelets

func (*KubeletOptionsBuilder) BuildOptions

func (b *KubeletOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for filling the defaults for the kubelet

type NetworkingOptionsBuilder

type NetworkingOptionsBuilder struct {
	Context *OptionsContext
}

NetworkingOptionsBuilder adds options for the kubelet to the model

func (*NetworkingOptionsBuilder) BuildOptions

func (b *NetworkingOptionsBuilder) BuildOptions(o interface{}) error

type NodeProblemDetectorOptionsBuilder added in v1.21.3

type NodeProblemDetectorOptionsBuilder struct {
	*OptionsContext
}

NodeProblemDetectorOptionsBuilder adds options for the node problem detector to the model.

func (*NodeProblemDetectorOptionsBuilder) BuildOptions added in v1.21.3

func (b *NodeProblemDetectorOptionsBuilder) BuildOptions(o interface{}) error

type NodeTerminationHandlerOptionsBuilder added in v1.19.0

type NodeTerminationHandlerOptionsBuilder struct {
	*OptionsContext
}

NodeTerminationHandlerOptionsBuilder adds options for the node termination handler to the model.

func (*NodeTerminationHandlerOptionsBuilder) BuildOptions added in v1.19.0

func (b *NodeTerminationHandlerOptionsBuilder) BuildOptions(o interface{}) error

type OpenStackOptionsBuilder added in v1.24.0

type OpenStackOptionsBuilder struct {
	Context *OptionsContext
}

OpenStackOptionsBuilder adds options for OpenStack to the model

func (*OpenStackOptionsBuilder) BuildOptions added in v1.24.0

func (b *OpenStackOptionsBuilder) BuildOptions(o interface{}) error

type OptionsContext

type OptionsContext struct {
	ClusterName string

	KubernetesVersion semver.Version

	AssetBuilder *assets.AssetBuilder
}

OptionsContext is the context object for options builders

func (*OptionsContext) IsKubernetesGTE

func (c *OptionsContext) IsKubernetesGTE(version string) bool

func (*OptionsContext) IsKubernetesLT

func (c *OptionsContext) IsKubernetesLT(version string) bool

Jump to

Keyboard shortcuts

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