Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchTLSProfileFromFile ¶ added in v0.87.0
func FetchTLSProfileFromFile(path string) (func(*tls.Config), nmstatetls.TLSProfileSpec, error)
FetchTLSProfileFromFile reads a TLS profile spec from a JSON file (mounted from a ConfigMap) and returns the TLS options function and the raw spec. This avoids calling the API server at startup, which is critical when network connectivity may be temporarily unavailable.
func IsOpenShift ¶
IsOpenShift returns true if the current cluster is an OpenShift/OKD cluster.
func IsOpenShiftFromEnv ¶ added in v0.87.0
func IsOpenShiftFromEnv() bool
IsOpenShiftFromEnv returns true if the IS_OPENSHIFT environment variable is set to "true". The operator sets this variable on all handler-deployed pods so they can skip the API server discovery call at startup.
Types ¶
This section is empty.