Documentation ¶
Index ¶
- Constants
- Variables
- func Convert_audit_AuditBackendClusterForwarding_To_v1alpha1_AuditBackendClusterForwarding(in *audit.AuditBackendClusterForwarding, out *AuditBackendClusterForwarding, ...) error
- func Convert_audit_AuditBackendLog_To_v1alpha1_AuditBackendLog(in *audit.AuditBackendLog, out *AuditBackendLog, s conversion.Scope) error
- func Convert_audit_AuditBackendSplunk_To_v1alpha1_AuditBackendSplunk(in *audit.AuditBackendSplunk, out *AuditBackendSplunk, s conversion.Scope) error
- func Convert_audit_AuditBackends_To_v1alpha1_AuditBackends(in *audit.AuditBackends, out *AuditBackends, s conversion.Scope) error
- func Convert_audit_AuditConfig_To_v1alpha1_AuditConfig(in *audit.AuditConfig, out *AuditConfig, s conversion.Scope) error
- func Convert_audit_AuditPersistence_To_v1alpha1_AuditPersistence(in *audit.AuditPersistence, out *AuditPersistence, s conversion.Scope) error
- func Convert_v1alpha1_AuditBackendClusterForwarding_To_audit_AuditBackendClusterForwarding(in *AuditBackendClusterForwarding, out *audit.AuditBackendClusterForwarding, ...) error
- func Convert_v1alpha1_AuditBackendLog_To_audit_AuditBackendLog(in *AuditBackendLog, out *audit.AuditBackendLog, s conversion.Scope) error
- func Convert_v1alpha1_AuditBackendSplunk_To_audit_AuditBackendSplunk(in *AuditBackendSplunk, out *audit.AuditBackendSplunk, s conversion.Scope) error
- func Convert_v1alpha1_AuditBackends_To_audit_AuditBackends(in *AuditBackends, out *audit.AuditBackends, s conversion.Scope) error
- func Convert_v1alpha1_AuditConfig_To_audit_AuditConfig(in *AuditConfig, out *audit.AuditConfig, s conversion.Scope) error
- func Convert_v1alpha1_AuditPersistence_To_audit_AuditPersistence(in *AuditPersistence, out *audit.AuditPersistence, s conversion.Scope) error
- func DefaultBackends(backends *AuditBackends)
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_AuditConfig(a *AuditConfig)
- func SetDefaults_AuditPersistence(persistence *AuditPersistence)
- func SetObjectDefaults_AuditConfig(in *AuditConfig)
- type AuditBackendClusterForwarding
- type AuditBackendLog
- type AuditBackendSplunk
- type AuditBackends
- type AuditConfig
- type AuditPersistence
- type AuditWebhookMode
Constants ¶
const ( SeedAuditResourceName = "extension-audit" ShootAuditResourceName = "extension-audit-shoot" ShootAudittailerNamespace = "audit" AuditWebhookModeBatch AuditWebhookMode = "batch" AuditWebhookModeBlocking AuditWebhookMode = "blocking" AuditWebhookModeBlockingStrict AuditWebhookMode = "blocking-strict" SplunkSecretTokenKey = "token" SplunkSecretCaFileKey = "ca" )
const GroupName = "audit.metal.extensions.gardener.cloud"
GroupName is the group name use in this package
Variables ¶
var ( // SchemeBuilder used to register the Shoot resource. SchemeBuilder runtime.SchemeBuilder // AddToScheme is a pointer to SchemeBuilder.AddToScheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_audit_AuditBackendClusterForwarding_To_v1alpha1_AuditBackendClusterForwarding ¶
func Convert_audit_AuditBackendClusterForwarding_To_v1alpha1_AuditBackendClusterForwarding(in *audit.AuditBackendClusterForwarding, out *AuditBackendClusterForwarding, s conversion.Scope) error
Convert_audit_AuditBackendClusterForwarding_To_v1alpha1_AuditBackendClusterForwarding is an autogenerated conversion function.
func Convert_audit_AuditBackendLog_To_v1alpha1_AuditBackendLog ¶
func Convert_audit_AuditBackendLog_To_v1alpha1_AuditBackendLog(in *audit.AuditBackendLog, out *AuditBackendLog, s conversion.Scope) error
Convert_audit_AuditBackendLog_To_v1alpha1_AuditBackendLog is an autogenerated conversion function.
func Convert_audit_AuditBackendSplunk_To_v1alpha1_AuditBackendSplunk ¶
func Convert_audit_AuditBackendSplunk_To_v1alpha1_AuditBackendSplunk(in *audit.AuditBackendSplunk, out *AuditBackendSplunk, s conversion.Scope) error
Convert_audit_AuditBackendSplunk_To_v1alpha1_AuditBackendSplunk is an autogenerated conversion function.
func Convert_audit_AuditBackends_To_v1alpha1_AuditBackends ¶
func Convert_audit_AuditBackends_To_v1alpha1_AuditBackends(in *audit.AuditBackends, out *AuditBackends, s conversion.Scope) error
Convert_audit_AuditBackends_To_v1alpha1_AuditBackends is an autogenerated conversion function.
func Convert_audit_AuditConfig_To_v1alpha1_AuditConfig ¶
func Convert_audit_AuditConfig_To_v1alpha1_AuditConfig(in *audit.AuditConfig, out *AuditConfig, s conversion.Scope) error
Convert_audit_AuditConfig_To_v1alpha1_AuditConfig is an autogenerated conversion function.
func Convert_audit_AuditPersistence_To_v1alpha1_AuditPersistence ¶
func Convert_audit_AuditPersistence_To_v1alpha1_AuditPersistence(in *audit.AuditPersistence, out *AuditPersistence, s conversion.Scope) error
Convert_audit_AuditPersistence_To_v1alpha1_AuditPersistence is an autogenerated conversion function.
func Convert_v1alpha1_AuditBackendClusterForwarding_To_audit_AuditBackendClusterForwarding ¶
func Convert_v1alpha1_AuditBackendClusterForwarding_To_audit_AuditBackendClusterForwarding(in *AuditBackendClusterForwarding, out *audit.AuditBackendClusterForwarding, s conversion.Scope) error
Convert_v1alpha1_AuditBackendClusterForwarding_To_audit_AuditBackendClusterForwarding is an autogenerated conversion function.
func Convert_v1alpha1_AuditBackendLog_To_audit_AuditBackendLog ¶
func Convert_v1alpha1_AuditBackendLog_To_audit_AuditBackendLog(in *AuditBackendLog, out *audit.AuditBackendLog, s conversion.Scope) error
Convert_v1alpha1_AuditBackendLog_To_audit_AuditBackendLog is an autogenerated conversion function.
func Convert_v1alpha1_AuditBackendSplunk_To_audit_AuditBackendSplunk ¶
func Convert_v1alpha1_AuditBackendSplunk_To_audit_AuditBackendSplunk(in *AuditBackendSplunk, out *audit.AuditBackendSplunk, s conversion.Scope) error
Convert_v1alpha1_AuditBackendSplunk_To_audit_AuditBackendSplunk is an autogenerated conversion function.
func Convert_v1alpha1_AuditBackends_To_audit_AuditBackends ¶
func Convert_v1alpha1_AuditBackends_To_audit_AuditBackends(in *AuditBackends, out *audit.AuditBackends, s conversion.Scope) error
Convert_v1alpha1_AuditBackends_To_audit_AuditBackends is an autogenerated conversion function.
func Convert_v1alpha1_AuditConfig_To_audit_AuditConfig ¶
func Convert_v1alpha1_AuditConfig_To_audit_AuditConfig(in *AuditConfig, out *audit.AuditConfig, s conversion.Scope) error
Convert_v1alpha1_AuditConfig_To_audit_AuditConfig is an autogenerated conversion function.
func Convert_v1alpha1_AuditPersistence_To_audit_AuditPersistence ¶
func Convert_v1alpha1_AuditPersistence_To_audit_AuditPersistence(in *AuditPersistence, out *audit.AuditPersistence, s conversion.Scope) error
Convert_v1alpha1_AuditPersistence_To_audit_AuditPersistence is an autogenerated conversion function.
func DefaultBackends ¶ added in v0.1.1
func DefaultBackends(backends *AuditBackends)
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_AuditConfig ¶
func SetDefaults_AuditConfig(a *AuditConfig)
SetDefaults_AuditConfig sets the defaults for the AuditConfig configuration
func SetDefaults_AuditPersistence ¶
func SetDefaults_AuditPersistence(persistence *AuditPersistence)
SetDefaults_AuditPersistence sets the defaults for the AuditPersistence configuration
func SetObjectDefaults_AuditConfig ¶
func SetObjectDefaults_AuditConfig(in *AuditConfig)
Types ¶
type AuditBackendClusterForwarding ¶
type AuditBackendClusterForwarding struct { // Enabled allows to turn this backend on. Enabled bool `json:"enabled"` // FilesystemBufferSize is the maximum disk space for the fluent-bit file sytem buffer. FilesystemBufferSize *string `json:"bufferSize,omitempty"` }
func (*AuditBackendClusterForwarding) DeepCopy ¶
func (in *AuditBackendClusterForwarding) DeepCopy() *AuditBackendClusterForwarding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditBackendClusterForwarding.
func (*AuditBackendClusterForwarding) DeepCopyInto ¶
func (in *AuditBackendClusterForwarding) DeepCopyInto(out *AuditBackendClusterForwarding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuditBackendLog ¶
type AuditBackendLog struct { // Enabled allows to turn this backend on. Enabled bool `json:"enabled"` }
func (*AuditBackendLog) DeepCopy ¶
func (in *AuditBackendLog) DeepCopy() *AuditBackendLog
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditBackendLog.
func (*AuditBackendLog) DeepCopyInto ¶
func (in *AuditBackendLog) DeepCopyInto(out *AuditBackendLog)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuditBackendSplunk ¶
type AuditBackendSplunk struct { // Enabled allows to turn this backend on. Enabled bool `json:"enabled"` // FilesystemBufferSize is the maximum disk space for the fluent-bit file sytem buffer. FilesystemBufferSize *string `json:"bufferSize,omitempty"` // Index is the splunk index that should be used. Index string `json:"index"` // Host ist the hostname of the splunk HEC endpoint. Host string `json:"host"` // Port ist the port on which the HEC endpoint is listening. Port string `json:"port"` // SecretResourceName is a reference under Shoot.spec.resources to the secret used to authenticate against the splunk backend. // // The referenced secret may contain the following keys: // // - token: Required, hec token to authenticate against this host/index // - ca: Optional, the CA (bundle) that signed the HEC endpoint's server certificate as an unencoded string. SecretResourceName string `json:"secretResourceName"` // TlsEnabled determines whether TLS should be used to communicate to the HEC endpoint. TlsEnabled bool `json:"tls"` }
func (*AuditBackendSplunk) DeepCopy ¶
func (in *AuditBackendSplunk) DeepCopy() *AuditBackendSplunk
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditBackendSplunk.
func (*AuditBackendSplunk) DeepCopyInto ¶
func (in *AuditBackendSplunk) DeepCopyInto(out *AuditBackendSplunk)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuditBackends ¶
type AuditBackends struct { // Log outputs the log data on stdout of the webhook pod. It is mainly intended for debugging / testing purposes. // +optional Log *AuditBackendLog `json:"log,omitempty"` // ClusterForwarding will forward the audit data to a pod in the shoot where they are printed to stdout and can be // picked up by the log collecting solution of the cluster operator's choice. // +optional ClusterForwarding *AuditBackendClusterForwarding `json:"clusterForwarding,omitempty"` // Splunk will forward the audit data to a splunk HEC endpoint. // +optional Splunk *AuditBackendSplunk `json:"splunk,omitempty"` }
func (*AuditBackends) DeepCopy ¶
func (in *AuditBackends) DeepCopy() *AuditBackends
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditBackends.
func (*AuditBackends) DeepCopyInto ¶
func (in *AuditBackends) DeepCopyInto(out *AuditBackends)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuditConfig ¶
type AuditConfig struct { metav1.TypeMeta `json:",inline"` // Persistence contains options about the persistent volume used for buffering the audit data // on the filesystem. Persistence AuditPersistence `json:"persistence"` // Replicas are the amount of replicas used for the buffering audit pods. // +optional Replicas *int32 `json:"replicas,omitempty"` // WebhookMode allows to select which auditing mode - batching or blocking - should be used. WebhookMode AuditWebhookMode `json:"webhookMode"` // Backends contains the settings for the various backends. // +optional Backends *AuditBackends `json:"backends,omitempty"` }
AuditConfig configuration resource
func (*AuditConfig) DeepCopy ¶
func (in *AuditConfig) DeepCopy() *AuditConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditConfig.
func (*AuditConfig) DeepCopyInto ¶
func (in *AuditConfig) DeepCopyInto(out *AuditConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AuditConfig) DeepCopyObject ¶
func (in *AuditConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AuditPersistence ¶
type AuditPersistence struct { // Size is the size of the PVC to be used for each replica of the statefulset. // +optional Size *resource.Quantity `json:"size,omitempty"` // StorageClassName is the name of the storage class to be used for the PVC. If empty, the default // storage class is used. // +optional StorageClassName *string `json:"storageClassName,omitempty"` }
func (*AuditPersistence) DeepCopy ¶
func (in *AuditPersistence) DeepCopy() *AuditPersistence
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditPersistence.
func (*AuditPersistence) DeepCopyInto ¶
func (in *AuditPersistence) DeepCopyInto(out *AuditPersistence)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuditWebhookMode ¶
type AuditWebhookMode string