install

package
v0.16.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AwsNodeDaemonSetName              = "aws-node"
	AwsNodeDaemonSetNamespace         = "kube-system"
	AwsNodeDaemonSetNodeSelectorKey   = "io.cilium/aws-node-enabled"
	AwsNodeDaemonSetNodeSelectorValue = "true"
)
View Source
const (
	DatapathTunnel    = "tunnel"
	DatapathNative    = "native"
	DatapathAwsENI    = "aws-eni"
	DatapathGKE       = "gke"
	DatapathAzure     = "azure"
	DatapathAKSBYOCNI = "aks-byocni"
)
View Source
const (
	Microk8sSnapPath = "/var/snap/microk8s/current"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureParameters

type AzureParameters struct {
	ResourceGroupName    string
	AKSNodeResourceGroup string
	SubscriptionName     string
	SubscriptionID       string
	TenantID             string
	ClientID             string
	ClientSecret         string
	IsBYOCNI             bool
}

type K8sInstaller

type K8sInstaller struct {
	// contains filtered or unexported fields
}

func NewK8sInstaller

func NewK8sInstaller(client k8sInstallerImplementation, p Parameters) (*K8sInstaller, error)

func (*K8sInstaller) Exec

func (k *K8sInstaller) Exec(command string, args ...string) ([]byte, error)

func (*K8sInstaller) InstallWithHelm added in v0.14.0

func (k *K8sInstaller) InstallWithHelm(ctx context.Context, k8sClient *k8s.Client) error

func (*K8sInstaller) Log

func (k *K8sInstaller) Log(format string, a ...interface{})

func (*K8sInstaller) UpgradeWithHelm added in v0.14.0

func (k *K8sInstaller) UpgradeWithHelm(ctx context.Context, k8sClient *k8s.Client) error

type K8sUninstaller

type K8sUninstaller struct {
	// contains filtered or unexported fields
}

func NewK8sUninstaller

func NewK8sUninstaller(client k8sInstallerImplementation, p UninstallParameters) *K8sUninstaller

func (*K8sUninstaller) DeleteTestNamespace added in v0.16.5

func (k *K8sUninstaller) DeleteTestNamespace(ctx context.Context)

DeleteTestNamespace deletes all pods in the test namespace and then deletes the namespace itself.

func (*K8sUninstaller) Log

func (k *K8sUninstaller) Log(format string, a ...interface{})

func (*K8sUninstaller) UninstallWithHelm added in v0.14.0

func (k *K8sUninstaller) UninstallWithHelm(ctx context.Context, actionConfig *action.Configuration) error

type Parameters

type Parameters struct {
	Namespace             string
	Writer                io.Writer
	ClusterName           string
	DisableChecks         []string
	Version               string
	Wait                  bool
	WaitDuration          time.Duration
	DatapathMode          string
	IPv4NativeRoutingCIDR string
	Azure                 AzureParameters

	// HelmChartDirectory points to the location of a helm chart directory.
	// Useful to test from upstream where a helm release is not available yet.
	HelmChartDirectory string

	// HelmRepository specifies the Helm repository to download Cilium Helm charts from.
	HelmRepository string

	// HelmReleaseName specifies the Helm release name for the Cilium CLI.
	// Useful for referencing Cilium installations installed directly through Helm
	// or overriding the Cilium CLI for install/upgrade/enable.
	HelmReleaseName string

	// HelmOpts are all the options the user used to pass into the Cilium cli
	// template.
	HelmOpts values.Options

	// HelmResetValues if true, will reset helm values to the defaults found in the chart when upgrading
	HelmResetValues bool

	// HelmReuseValues if true, will reuse the helm values from the latest release when upgrading, unless overrides are
	// specified by other flags. This options take precedence over the HelmResetValues option.
	HelmReuseValues bool

	// DryRun writes resources to be installed to stdout without actually installing them. For Helm
	// installation mode only.
	DryRun bool

	// DryRunHelmValues writes non-default Helm values to stdout without performing the actual installation.
	// For Helm installation mode only.
	DryRunHelmValues bool

	// ListVersions lists all the available versions for install without actually installing.
	ListVersions bool

	// NodesWithoutCilium enables the affinities to avoid scheduling Cilium components on nodes labeled with cilium.io/no-schedule
	NodesWithoutCilium bool
}

func (*Parameters) IsDryRun added in v0.15.18

func (p *Parameters) IsDryRun() bool

type UninstallParameters

type UninstallParameters struct {
	Namespace            string
	TestNamespace        string
	Writer               io.Writer
	Wait                 bool
	HelmValuesSecretName string
	RedactHelmCertKeys   bool
	HelmChartDirectory   string
	WorkerCount          int
	Timeout              time.Duration
	HelmReleaseName      string
}

Jump to

Keyboard shortcuts

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