providers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//nolint:lll // for readability prefer to keep the long line
	KubeVIPPreKubeadmCommands = []string{`if [ -f /run/kubeadm/kubeadm.yaml ]; then
  sed -i 's#path: /etc/kubernetes/admin.conf#path: /etc/kubernetes/super-admin.conf#' /etc/kubernetes/manifests/kube-vip.yaml;
fi`}
	//nolint:lll // for readability prefer to keep the long line
	KubeVIPPostKubeadmCommands = []string{`if [ -f /run/kubeadm/kubeadm.yaml ]; then
  sed -i 's#path: /etc/kubernetes/super-admin.conf#path: /etc/kubernetes/admin.conf#' /etc/kubernetes/manifests/kube-vip.yaml;
fi`}
)

Functions

func NewKubeVIPFromConfigMapProvider

func NewKubeVIPFromConfigMapProvider(
	cl client.Reader,
	name, namespace string,
) *kubeVIPFromConfigMapProvider

Types

type Provider

type Provider interface {
	Name() string
	GetFile(ctx context.Context, spec v1alpha1.ControlPlaneEndpointSpec) (*bootstrapv1.File, error)
	GetCommands(cluster *clusterv1.Cluster) ([]string, []string, error)
}

Provider is an interface for getting the kube-vip static Pod as a file.

Jump to

Keyboard shortcuts

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