Documentation ¶
Overview ¶
Package common contains common code for implementing providers
Index ¶
- Constants
- func CollectLogs(n nodes.Node, dir string) error
- func FileOnHost(path string) (*os.File, error)
- func GetFreePort(listenAddr string) (int32, error)
- func GetProxyEnvs(cfg *config.Cluster) map[string]string
- func MakeNodeNamer(clusterName string) func(string) string
- func PortOrGetFreePort(port int32, listenAddr string) (int32, error)
- func RequiredNodeImages(cfg *config.Cluster) sets.String
Constants ¶
const ( // HTTPProxy is the HTTP_PROXY environment variable key HTTPProxy = "HTTP_PROXY" // HTTPSProxy is the HTTPS_PROXY environment variable key HTTPSProxy = "HTTPS_PROXY" // NOProxy is the NO_PROXY environment variable key NOProxy = "NO_PROXY" )
const APIServerInternalPort = 6443
APIServerInternalPort defines the port where the control plane is listening _inside_ the node network
Variables ¶
This section is empty.
Functions ¶
func CollectLogs ¶
CollectLogs provides the common functionality to get various debug info from the node
func FileOnHost ¶
FileOnHost is a helper to create a file at path even if the parent directory doesn't exist in which case it will be created with ModePerm
func GetFreePort ¶
GetFreePort is a helper used to get a free TCP port on the host
func GetProxyEnvs ¶
GetProxyEnvs returns a map of proxy environment variables to their values If proxy settings are set, NO_PROXY is modified to include the cluster subnets
func MakeNodeNamer ¶
MakeNodeNamer returns a func(role string)(nodeName string) used to name nodes based on their role and the clusterName
func PortOrGetFreePort ¶
PortOrGetFreePort is a helper that either returns the provided port if valid or returns a new free port on listenAddr
Types ¶
This section is empty.