Files
capsule/internal/webhook/route/config.go
T
Oliver BählerandGitHub 584d372521 feat(config): add combined users property as successor for usergroups (#1767)
* feat(config): add combined users property as successor for usergroups and usernames configuration

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* fix(crds): add proper deprecation notices on properties and via admission warnings

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* chore: add local monitoring environment

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

---------

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
2025-12-04 12:18:07 +01:00

25 lines
549 B
Go

// Copyright 2020-2025 Project Capsule Authors
// SPDX-License-Identifier: Apache-2.0
package route
import (
capsulewebhook "github.com/projectcapsule/capsule/internal/webhook"
)
type configValidating struct {
handlers []capsulewebhook.Handler
}
func ConfigValidation(handler ...capsulewebhook.Handler) capsulewebhook.Webhook {
return &configValidating{handlers: handler}
}
func (w *configValidating) GetHandlers() []capsulewebhook.Handler {
return w.handlers
}
func (w *configValidating) GetPath() string {
return "/config/validating"
}