recipe

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PlanKey for storing plans as annotations on Nodes
	PlanKey string = "wks.weave.works/node-plan"
)

Variables

This section is empty.

Functions

func BinInstaller added in v0.2.1

func BinInstaller(pkgType resource.PkgType, f *eksd.EKSD) (func(string, string) plan.Resource, error)

BinInstaller creates a function to install binaries based on package type and cluster flavors

func BuildBasePlan

func BuildBasePlan(pkgType resource.PkgType) plan.Resource

BuildBasePlan creates a plan for installing the base building blocks for the node

func BuildCNIPlan added in v0.0.4

func BuildCNIPlan(cni string, manifests [][]byte) plan.Resource

BuildCNIPlan creates a sub-plan to install the CNI plugin.

func BuildCRIPlan

BuildCRIPlan creates a plan for installing a CRI. Currently, Docker is the only supported CRI

func BuildConfigMapPlan added in v0.0.4

func BuildConfigMapPlan(manifests map[string][]byte, namespace string) plan.Resource

BuildConfigMapPlan creates a plan to handle config maps

func BuildConfigPlan

func BuildConfigPlan(files []*resource.File) plan.Resource

BuildConfigPlan creates a plan for handling the configuration files

func BuildGetKubeadmCertKeyPlan added in v0.0.9

func BuildGetKubeadmCertKeyPlan(ctx context.Context, certificateKey *string) (*plan.Plan, error)

func BuildK8SPlan

func BuildK8SPlan(kubernetesVersion string, kubeletNodeIP string, seLinuxInstalled, setSELinuxPermissive, disableSwap, lockYUMPkgs bool, pkgType resource.PkgType, cloudProvider string, extraArgs map[string]string, binInstaller func(string, string) plan.Resource, flavor *eksd.EKSD) plan.Resource

BuildK8SPlan creates a plan for running kubernetes on a node

func BuildKubeadmPrejoinPlan

func BuildKubeadmPrejoinPlan(useIPTables bool) plan.Resource

BuildKubeadmPrejoinPlan creates a sub-plan to prepare for running kubeadm join.

func BuildSealedSecretPlan added in v0.0.4

func BuildSealedSecretPlan(sealedSecretVersion, crdManifest, keyManifest, controllerManifest []byte) plan.Resource

BuildSealedSecretPlan creates a sub-plan to install sealed secrets so we can check secrets into GitHub for GitOps

func BuildUpgradePlan

func BuildUpgradePlan(pkgType resource.PkgType, k8sVersion string, ntype NodeType) (plan.Resource, error)

BuildUpgradePlan creates a sub-plan to run upgrade using respective package management commands.

func BuildUploadKubeadmCertsPlan added in v0.0.9

func BuildUploadKubeadmCertsPlan(ctx context.Context, certificateKey string) (*plan.Plan, error)

Types

type NodeType

type NodeType int
const (
	OriginalMaster NodeType = iota
	SecondaryMaster
	Worker
)

Jump to

Keyboard shortcuts

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