openshift

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTLSProfile

func FetchTLSProfile(ctx context.Context, c client.Client) (minVersion string, cipherSuites string, profileSpec configv1.TLSProfileSpec, err error)

FetchTLSProfile reads the TLS security profile from the cluster's config.openshift.io/v1 APIServer resource and returns the min TLS version and cipher suites as strings suitable for CLI flags.

func SetupProfileWatcher

func SetupProfileWatcher(mgr ctrl.Manager, initialProfileSpec configv1.TLSProfileSpec, cancelFunc context.CancelFunc) error

SetupProfileWatcher registers a controller that watches the OpenShift APIServer resource for TLS profile changes. When a change is detected, it calls cancelFunc to trigger a graceful operator restart. The cancel function is guarded by sync.Once to prevent repeated calls from rapid profile changes. Must be called before mgr.Start().

Types

This section is empty.

Jump to

Keyboard shortcuts

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