configvalidator

package
v1.136.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 24 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdmitAuditPolicy

func AdmitAuditPolicy(auditPolicyRaw string) (int32, error)

AdmitAuditPolicy validates the provided audit policy.

Types

type Handler

type Handler struct {
	APIReader client.Reader
	Client    client.Reader
	Decoder   admission.Decoder

	ConfigMapPurpose            string
	ConfigMapDataKey            string
	GetConfigMapNameFromShoot   func(shoot *gardencore.Shoot) string
	SkipValidationOnShootUpdate func(shoot, oldShoot *gardencore.Shoot) bool
	AdmitConfig                 func(configRaw string, shootsReferencingConfigMap []*gardencore.Shoot) (int32, error)

	GetNamespace                func() string
	GetConfigMapNamesFromGarden func(garden *operatorv1alpha1.Garden) []string
	AdmitGardenConfig           func(configRaw string) (int32, error)
}

Handler validates configuration part of ConfigMaps which are referenced in Shoot or Garden resources.

func (*Handler) Handle

Handle validates configuration part of ConfigMaps which are referenced in Shoot or Garden resources.

Jump to

Keyboard shortcuts

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