Documentation ¶
Index ¶
Constants ¶
const (
// MachineAPINamespace is the name of the namespace in which machine objects and userData secret is created.
MachineAPINamespace = "openshift-machine-api"
)
Variables ¶
var ( // WatchedEnvironmentVars is a list of the WMCO watched environment variables WatchedEnvironmentVars = []string{"HTTP_PROXY", "HTTPS_PROXY", "NO_PROXY"} )
Functions ¶
func GetDNS ¶
GetDNS parses a subnet in CIDR format as defined by RFC 4632 and RFC 4291 and returns the IP address of the Cluster DNS. Example: 172.30.0.0/16 returns 172.30.0.10
func GetProxyVars ¶
GetProxyVars returns a map of the proxy variables and values from the WMCO container's environment. The presence of any implies a proxy is enabled, as OLM would have injected them into the operator spec. Returns an empty map otherwise.
func IsProxyEnabled ¶
func IsProxyEnabled() bool
IsProxyEnabled returns whether a global egress proxy is active in the cluster
func NewClusterNetworkCfg ¶
NewClusterNetworkCfg assigns a serviceCIDR value and returns a pointer to the clusterNetworkCfg struct
func ValidateCIDR ¶
ValidateCIDR uses the parseCIDR from network package to validate the format of the CIDR
Types ¶
type Config ¶
type Config interface { // Validate checks if the cluster configurations are as required. Validate() error // Platform returns cloud provider on which OpenShift is running Platform() oconfig.PlatformType // Network returns network configuration for the OpenShift cluster Network() Network }
Config interface contains methods to expose cluster config related information