setting

package
v0.6.1-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 17 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"
	UserLastLoginDefault      = "user-last-login-default"
	UserRetentionCron         = "user-retention-cron"
	AgentTLSMode              = "agent-tls-mode"
)
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