setting

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeleteInactiveUserAfter               = "delete-inactive-user-after"
	DisableInactiveUserAfter              = "disable-inactive-user-after"
	AuthUserSessionTTLMinutes             = "auth-user-session-ttl-minutes"
	AuthUserSessionIdleTTLMinutes         = "auth-user-session-idle-ttl-minutes"
	UserLastLoginDefault                  = "user-last-login-default"
	UserRetentionCron                     = "user-retention-cron"
	AgentTLSMode                          = "agent-tls-mode"
	CattleClusterAgentPriorityClass       = "cluster-agent-default-priority-class"
	CattleClusterAgentPodDisruptionBudget = "cluster-agent-default-pod-disruption-budget"
)
View Source
const MinDeleteInactiveUserAfter = 24 * 14 * time.Hour // 14 days.

MinDeleteInactiveUserAfter is the minimum duration for delete-inactive-user-after setting. This is introduced to minimize the risk of deleting users accidentally by setting a relatively low value. The admin can still set a lower value if needed by bypassing the webhook.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator validates settings.

func NewValidator

func NewValidator(clusterCache controllerv3.ClusterCache, settingCache controllerv3.SettingCache) *Validator

NewValidator returns a new Validator instance.

func (*Validator) Admitters

func (v *Validator) Admitters() []admission.Admitter

Admitters returns the admitter objects.

func (*Validator) GVR

GVR returns the GroupVersionResource.

func (*Validator) Operations

Operations returns list of operations handled by the validator.

func (*Validator) ValidatingWebhook

ValidatingWebhook returns the ValidatingWebhook.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳