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.
Click to show internal directories.
Click to hide internal directories.