auditlogpersistence

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultEnabled is the default value for Spec.Enabled
	DefaultEnabled = false

	// DefaultStorageSize is the default value for Storage.Size
	DefaultStorageSize = "5Gi"

	// DefaultAuditLogMaxSize is the default value for AuditLog.MaxSize
	DefaultAuditLogMaxSize = int32(200)

	// DefaultAuditLogMaxBackup is the default value for AuditLog.MaxBackup
	DefaultAuditLogMaxBackup = int32(10)

	// DefaultSnapshotsEnabled is the default value for Snapshots.Enabled
	DefaultSnapshotsEnabled = false

	// DefaultSnapshotsMinInterval is the default value for Snapshots.MinInterval
	DefaultSnapshotsMinInterval = "1h"

	// DefaultSnapshotsPerPodRetentionCount is the default value for Snapshots.PerPodRetentionCount
	DefaultSnapshotsPerPodRetentionCount = int32(10)

	// DefaultSnapshotsNamespaceRetentionCount is the default value for Snapshots.NamespaceRetentionCount
	DefaultSnapshotsNamespaceRetentionCount = int32(50)
)

Variables

This section is empty.

Functions

func ApplyDefaults

ApplyDefaults applies default values to an AuditLogPersistenceConfigSpec. This function ensures that all fields have their default values when not explicitly set.

func IsEnabled

IsEnabled returns the enabled value (default is false, so no special handling needed)

func IsSnapshotsEnabled

IsSnapshotsEnabled returns the snapshots enabled value. ApplyDefaults should be called first to ensure defaults are applied.

func SetupSnapshotController

func SetupSnapshotController(mgr ctrl.Manager) error

SetupSnapshotController sets up the snapshot controller that watches Pods and creates VolumeSnapshots for kube-apiserver pods when they crash (restart count increases).

Types

type ConfigMapWebhookHandler

type ConfigMapWebhookHandler struct {
	// contains filtered or unexported fields
}

func NewConfigMapWebhookHandler

func NewConfigMapWebhookHandler(log logr.Logger, c client.Client, decoder admission.Decoder) *ConfigMapWebhookHandler

func (*ConfigMapWebhookHandler) Handle

type PodWebhookHandler

type PodWebhookHandler struct {
	// contains filtered or unexported fields
}

func NewPodWebhookHandler

func NewPodWebhookHandler(log logr.Logger, c client.Client, decoder admission.Decoder) *PodWebhookHandler

func (*PodWebhookHandler) Handle

type SnapshotReconciler

type SnapshotReconciler struct {
	// contains filtered or unexported fields
}

func (*SnapshotReconciler) Reconcile

func (r *SnapshotReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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