Documentation
¶
Index ¶
- Constants
- type AzureParameters
- type K8sInstaller
- func (k *K8sInstaller) Exec(command string, args ...string) ([]byte, error)
- func (k *K8sInstaller) InstallWithHelm(ctx context.Context, k8sClient *k8s.Client) error
- func (k *K8sInstaller) Log(format string, a ...any)
- func (k *K8sInstaller) UpgradeWithHelm(ctx context.Context, k8sClient *k8s.Client) error
- type K8sUninstaller
- type Parameters
- type UninstallParameters
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 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 ¶
func (*K8sInstaller) Log ¶
func (k *K8sInstaller) Log(format string, a ...any)
func (*K8sInstaller) UpgradeWithHelm ¶
type K8sUninstaller ¶
type K8sUninstaller struct {
// contains filtered or unexported fields
}
func NewK8sUninstaller ¶
func NewK8sUninstaller(client k8sInstallerImplementation, p UninstallParameters) *K8sUninstaller
func (*K8sUninstaller) DeleteTestNamespace ¶
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 ...any)
func (*K8sUninstaller) UninstallWithHelm ¶
func (k *K8sUninstaller) UninstallWithHelm(ctx context.Context, actionConfig *action.Configuration) error
type Parameters ¶
type Parameters struct {
Namespace string
Writer io.Writer
ClusterName 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
// HelmMaxHistory specifies the maximum number of Helm releases to keep.
HelmMaxHistory int
// 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
// HelmResetThenReuseValues if true, will reset the values to the ones built into the chart, apply the last release's values and merge in any overrides from the command line via --set and -f.
// If '--reset-values' or '--reuse-values' is specified, this is ignored
HelmResetThenReuseValues 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 ¶
func (p *Parameters) IsDryRun() bool
Click to show internal directories.
Click to hide internal directories.