Documentation ¶
Index ¶
- Constants
- type Validator
- func (v *Validator) Admitters() []admission.Admitter
- func (v *Validator) GVR() schema.GroupVersionResource
- func (v *Validator) Operations() []admissionregistrationv1.OperationType
- func (v *Validator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.ValidatingWebhook
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) GVR ¶
func (v *Validator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionResource.
func (*Validator) Operations ¶
func (v *Validator) Operations() []admissionregistrationv1.OperationType
Operations returns list of operations handled by the validator.
func (*Validator) ValidatingWebhook ¶
func (v *Validator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.ValidatingWebhook
ValidatingWebhook returns the ValidatingWebhook.
Click to show internal directories.
Click to hide internal directories.