apiserver

package
v0.0.0-...-5152f1c Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuditObserver

func NewAuditObserver(pathGetter AuditPolicyPathGetterFunc) configobserver.ObserveConfigFunc

NewAuditObserver returns an ObserveConfigFunc that observes the audit field of the APIServer resource and sets the apiServerArguments:audit-policy-file field for the apiserver appropriately.

func ObserveAdditionalCORSAllowedOrigins

func ObserveAdditionalCORSAllowedOrigins(genericListers configobserver.Listers, recorder events.Recorder, existingConfig map[string]interface{}) (map[string]interface{}, []error)

ObserveAdditionalCORSAllowedOrigins observes the additionalCORSAllowedOrigins field of the APIServer resource and sets the corsAllowedOrigins field of observedConfig

func ObserveAdditionalCORSAllowedOriginsToArguments

func ObserveAdditionalCORSAllowedOriginsToArguments(genericListers configobserver.Listers, recorder events.Recorder, existingConfig map[string]interface{}) (map[string]interface{}, []error)

ObserveAdditionalCORSAllowedOriginsToArguments observes the additionalCORSAllowedOrigins field of the APIServer resource and sets the cors-allowed-origins field in observedConfig.apiServerArguments

func ObserveTLSSecurityProfile

func ObserveTLSSecurityProfile(genericListers configobserver.Listers, recorder events.Recorder, existingConfig map[string]interface{}) (map[string]interface{}, []error)

ObserveTLSSecurityProfile observes APIServer.Spec.TLSSecurityProfile field and sets the ServingInfo.MinTLSVersion, ServingInfo.CipherSuites fields of observed config

func ObserveTLSSecurityProfileToArguments

func ObserveTLSSecurityProfileToArguments(genericListers configobserver.Listers, recorder events.Recorder, existingConfig map[string]interface{}) (map[string]interface{}, []error)

ObserveTLSSecurityProfileToArguments observes APIServer.Spec.TLSSecurityProfile field and sets the tls-min-version and tls-cipher-suites fileds of observedConfig.apiServerArguments

func ObserveTLSSecurityProfileWithPaths

func ObserveTLSSecurityProfileWithPaths(genericListers configobserver.Listers, recorder events.Recorder, existingConfig map[string]interface{}, minTLSVersionPath, cipherSuitesPath []string) (map[string]interface{}, []error)

ObserveTLSSecurityProfileWithPaths is like ObserveTLSSecurityProfile, but accepts custom paths for ServingInfo.MinTLSVersion and ServingInfo.CipherSuites fields of observed config.

Types

type APIServerLister

type APIServerLister interface {
	APIServerLister() configlistersv1.APIServerLister
}

type AuditPolicyPathGetterFunc

type AuditPolicyPathGetterFunc func(profile string) (string, error)

AuditPolicyPathGetterFunc allows the observer to be agnostic of the source of audit profile(s). The function returns the path to the audit policy file (associated with the given profile) in the static manifest folder.

Jump to

Keyboard shortcuts

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