Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTLSConfigForSCM ¶
func GetTLSConfigForSCM(spec *configv1.TLSProfileSpec) map[string]interface{}
GetTLSConfigForSCM returns camelCase TLS settings for spire-controller-manager YAML. Only non-empty fields are included. Returns nil when there is nothing to inject.
func GetTLSConfigForSpiffeSpire ¶
func GetTLSConfigForSpiffeSpire(spec *configv1.TLSProfileSpec) map[string]interface{}
GetTLSConfigForSpiffeSpire returns snake_case TLS settings for SPIRE server, agent, and OIDC configs. Only non-empty fields are included. Returns nil when there is nothing to inject.
Types ¶
type OpenShiftTLSProfile ¶
type OpenShiftTLSProfile struct {
// OperatorGoTLSConfig applies TLS settings to a tls.Config. Used for operator metrics and webhook.
OperatorGoTLSConfig func(*tls.Config)
// InitialTLSAdherencePolicy is the cluster-wide TLS adherence policy fetched at startup.
InitialTLSAdherencePolicy configv1.TLSAdherencePolicy
// InitialTLSProfileSpec is the cluster-wide TLS profile spec fetched at startup.
InitialTLSProfileSpec configv1.TLSProfileSpec
}
OpenShiftTLSProfile holds the cluster TLS profile fetched at startup and metadata for the SecurityProfileWatcher.
func FetchAPIServerTLSConfig ¶
func FetchAPIServerTLSConfig(ctx context.Context, k8sClient client.Client, setupLog logr.Logger) (*OpenShiftTLSProfile, error)
FetchAPIServerTLSConfig fetches TLS settings from apiservers/cluster.