cluster

package
v0.87.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func IsOpenShift(kclient client.Client) (bool, error)

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.

Jump to

Keyboard shortcuts

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