constants

package
v0.0.0-...-afa59f5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Install
	MountedCNINetDir                  = "mounted-cni-net-dir"
	CNIConfName                       = "cni-conf-name"
	ChainedCNIPlugin                  = "chained-cni-plugin"
	CNINetworkConfigFile              = "cni-network-config-file"
	CNINetworkConfig                  = "cni-network-config"
	LogLevel                          = "log-level"
	KubeconfigMode                    = "kubeconfig-mode"
	KubeCAFile                        = "kube-ca-file"
	SkipTLSVerify                     = "skip-tls-verify"
	MonitoringPort                    = "monitoring-port"
	LogUDSSocket                      = "log-uds-socket"
	ZtunnelUDSAddress                 = "ztunnel-uds-address"
	CNIEventSocket                    = "cni-event-address"
	CNIAgentRunDir                    = "cni-agent-run-dir"
	ExcludeNamespaces                 = "exclude-namespaces"
	AmbientEnabled                    = "ambient-enabled"
	AmbientDNSCapture                 = "ambient-dns-capture"
	AmbientIPv6                       = "ambient-ipv6"
	AmbientDisableSafeUpgrade         = "ambient-disable-safe-upgrade"
	AmbientReconcilePodRulesOnStartup = "ambient-reconcile-pod-rules-on-startup"

	// Repair
	RepairEnabled            = "repair-enabled"
	RepairDeletePods         = "repair-delete-pods"
	RepairRepairPods         = "repair-repair-pods"
	RepairLabelPods          = "repair-label-pods"
	RepairLabelKey           = "repair-broken-pod-label-key"
	RepairLabelValue         = "repair-broken-pod-label-value"
	RepairNodeName           = "repair-node-name"
	RepairSidecarAnnotation  = "repair-sidecar-annotation"
	RepairInitContainerName  = "repair-init-container-name"
	RepairInitTerminationMsg = "repair-init-container-termination-message"
	RepairInitExitCode       = "repair-init-container-exit-code"
	RepairLabelSelectors     = "repair-label-selectors"
	RepairFieldSelectors     = "repair-field-selectors"
)

Command line arguments

View Source
const (
	DefaultKubeconfigMode = 0o600
	CNIAgentLogScope      = "cni-agent"
	CNIPluginLogScope     = "cni-plugin"
	CNIAddEventPath       = "/cmdadd"
	UDSLogPath            = "/log"
	CNIEventSocketName    = "pluginevent.sock"
	LogUDSSocketName      = "log.sock"
	CNIPluginKubeconfName = "istio-cni-kubeconfig"
	// K8s liveness and readiness endpoints
	LivenessEndpoint   = "/healthz"
	ReadinessEndpoint  = "/readyz"
	ReadinessPort      = "8000"
	ServiceAccountPath = "/var/run/secrets/kubernetes.io/serviceaccount"
)

Internal constants

Variables

View Source
var (
	CNIBinDir     = "/opt/cni/bin"
	HostCNIBinDir = "/host/opt/cni/bin"
	// Well-known subpath we will mount any needed host-mounts under,
	// to preclude shadowing or breaking any pod-internal mounts
	HostMountsPath = "/host"
)

Exposed for testing "constants"

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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