package
3.30.0-0.dev+incompatible
Repository: https://github.com/projectcalico/calico.git
Documentation: pkg.go.dev
# Functions
FIXME: get rid of this and call clientcmd.BuildConfigFromFlags() directly when containerd v1.6 is EOL'd BuildConfigFromFlags is a helper function that builds configs from a master url or a kubeconfig filepath.
GetHostPath returns the mount paths for a container In the case of Windows HostProcess containers this prepends the CONTAINER_SANDBOX_MOUNT_POINT env variable for other operating systems or if the sandbox env variable is not set it returns the standard mount points see https://kubernetes.io/docs/tasks/configure-pod-container/create-hostprocess-pod/#volume-mounts FIXME: this will no longer be needed when containerd v1.6 is EOL'd.
FIXME: get rid of this and call rest.InClusterConfig() directly when containerd v1.6 is EOL'd GetInClusterConfig returns a config object which uses the service account kubernetes gives to pods.
InHostProcessContainer returns true if inside a Windows HostProcess container, by checking if OS is Windows and the $env:CONTAINER_SANDBOX_MOUNT_POINT env variable is set.
When running in a Windows hostprocess container (HPC), add Calico Prometheus metrics port rules to the Windows firewall.
NewNonInteractiveDeferredLoadingClientConfig is a wrapper on top of clientcmd.NewNonInteractiveDeferredLoadingClientConfig.
No description provided by the author