autodetect

package
v0.149.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package autodetect is for auto-detecting traits from the environment (platform, APIs, ...).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAutoDetect added in v0.127.0

func ApplyAutoDetect(autoDetect AutoDetect, c *config.Config, logger logr.Logger) error

ApplyAutoDetect attempts to automatically detect relevant information for this operator.

Types

type AutoDetect

type AutoDetect interface {
	OpenShiftRoutesAvailability() (openshift.RoutesAvailability, error)
	PrometheusCRsAvailability() (prometheus.Availability, error)
	RBACPermissions(ctx context.Context) (autoRBAC.Availability, error)
	CertManagerAvailability(ctx context.Context) (certmanager.Availability, error)
	TargetAllocatorAvailability() (targetallocator.Availability, error)
	CollectorAvailability() (collector.Availability, error)
	OpAmpBridgeAvailablity() (opampbridge.Availability, error)
	FIPSEnabled(ctx context.Context) bool
	NativeSidecarSupport() (bool, error)
	GatewayAPIsAvailability() (gatewayapi.ApiAvailability, error)
}

AutoDetect provides an assortment of routines that auto-detect traits based on the runtime.

func New

func New(restConfig *rest.Config, reviewer *rbac.Reviewer) (AutoDetect, error)

New creates a new auto-detection worker, using the given client when talking to the current cluster.

Directories

Path Synopsis
Package k8s contains Kubernetes cluster feature detection.
Package k8s contains Kubernetes cluster feature detection.

Jump to

Keyboard shortcuts

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