Documentation ¶
Index ¶
- func NewAuditObserver(pathGetter AuditPolicyPathGetterFunc) configobserver.ObserveConfigFunc
- func ObserveAdditionalCORSAllowedOrigins(genericListers configobserver.Listers, recorder events.Recorder, ...) (map[string]interface{}, []error)
- func ObserveAdditionalCORSAllowedOriginsToArguments(genericListers configobserver.Listers, recorder events.Recorder, ...) (map[string]interface{}, []error)
- func ObserveTLSSecurityProfile(genericListers configobserver.Listers, recorder events.Recorder, ...) (map[string]interface{}, []error)
- func ObserveTLSSecurityProfileToArguments(genericListers configobserver.Listers, recorder events.Recorder, ...) (map[string]interface{}, []error)
- func ObserveTLSSecurityProfileWithPaths(genericListers configobserver.Listers, recorder events.Recorder, ...) (map[string]interface{}, []error)
- type APIServerLister
- type AuditPolicyPathGetterFunc
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 ¶
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.