auditlogpersistence

package
v0.1.87 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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