infrastructure

package
v0.0.0-...-4425a8b Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: EPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOperatorNamespace

func GetOperatorNamespace() (string, error)

GetOperatorNamespace returns the namespace where the operator is running. The result is cached to avoid repeated filesystem reads.

func InitializeForTesting

func InitializeForTesting(desiredInfrastructure Type)

func IsAgentSandboxEnabled

func IsAgentSandboxEnabled(discovery discovery.DiscoveryInterface) bool

func IsKubernetesImagePullerEnabled

func IsKubernetesImagePullerEnabled(discovery discovery.DiscoveryInterface) bool

func IsLeaderElectionEnabled

func IsLeaderElectionEnabled() bool

func IsOpenShift

func IsOpenShift() bool

func IsOpenShiftExternalAuth

func IsOpenShiftExternalAuth() bool

func IsOpenShiftOAuthEnabled

func IsOpenShiftOAuthEnabled() bool

func IsServiceMonitorEnabled

func IsServiceMonitorEnabled() bool

func SetOpenShiftOAuthEnabledForTesting

func SetOpenShiftOAuthEnabledForTesting(enabled bool)

Types

type Type

type Type int
const (
	Unknown Type = iota
	Kubernetes
	OpenShiftV4
)

Jump to

Keyboard shortcuts

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