Documentation
¶
Index ¶
- func EnsureVolSyncMoverSCCIfOpenShift(ctx context.Context, k8sClient client.Client, logger logr.Logger, ...) error
- func GetTLSConfigFromProfile(tlsSecurityProfileSpec ocpconfigv1.TLSProfileSpec, logger logr.Logger) func(*tls.Config)
- func GetTLSProfileIfOpenShift(ctx context.Context, k8sClient client.Client, logger logr.Logger) (*ocpconfigv1.TLSProfileSpec, error)
- func InitTLSSecurityProfileWatcherWithManager(mgr manager.Manager, initialTLSProfileSpec ocpconfigv1.TLSProfileSpec, ...) error
- func ParseTLSVersionForStunnelPSK(version ocpconfigv1.TLSProtocolVersion) (string, error)
- type Properties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.