platform

package
v0.16.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureVolSyncMoverSCCIfOpenShift

func EnsureVolSyncMoverSCCIfOpenShift(ctx context.Context, k8sClient client.Client, logger logr.Logger,
	sccName string, sccRaw []byte) error

func GetTLSConfigFromProfile

func GetTLSConfigFromProfile(tlsSecurityProfileSpec ocpconfigv1.TLSProfileSpec, logger logr.Logger) func(*tls.Config)

func GetTLSProfileIfOpenShift

func GetTLSProfileIfOpenShift(ctx context.Context, k8sClient client.Client,
	logger logr.Logger) (*ocpconfigv1.TLSProfileSpec, error)

func InitTLSSecurityProfileWatcherWithManager

func InitTLSSecurityProfileWatcherWithManager(mgr manager.Manager,
	initialTLSProfileSpec ocpconfigv1.TLSProfileSpec, logger logr.Logger, cancelFunc func()) error

Setup TLS Security Profile Watcher to monitor for TLS profile changes. When the cluster's TLS profile changes, cancelFunc() will be called. This can be used to initiate shutdown of the operator to restart and pickup the changes.

func ParseTLSVersionForStunnelPSK

func ParseTLSVersionForStunnelPSK(version ocpconfigv1.TLSProtocolVersion) (string, error)

Parse string version of ocpconfigv1.TLSProtocolVersion in format that others (such as stunnel) can interpret For our stunnel implementation (used by rsync-tls) we will use tlsv1.3 as the minimum unless something higher is picked (in future). No need to support older TLS versions as we're not allowing generic clients, only our rsync-tls client from replicationsource

Types

type Properties

type Properties struct {
	IsOpenShift            bool                        // True if we are running on OpenShift
	TLSSecurityProfileSpec *ocpconfigv1.TLSProfileSpec // Will be nil if not on OpenShift
}

func GetProperties

func GetProperties(ctx context.Context, k8sClient client.Client, logger logr.Logger) (Properties, error)

Retrieves properties of the running cluster

Jump to

Keyboard shortcuts

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