mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-23 22:46:59 +00:00
* chore(deps): update dependency golangci/golangci-lint to v2.8.0 * chore(deps): update dependency golangci/golangci-lint to v2.8.0 Signed-off-by: Hristo Hristov <me@hhristov.info> * chore(deps): update dependency golangci/golangci-lint to v2.8.0 Signed-off-by: Hristo Hristov <me@hhristov.info> * chore(deps): update dependency golangci/golangci-lint to v2.8.0 Signed-off-by: Hristo Hristov <me@hhristov.info> --------- Signed-off-by: Hristo Hristov <me@hhristov.info> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Hristo Hristov <me@hhristov.info>
36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
// Copyright 2020-2026 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package configuration
|
|
|
|
import (
|
|
"regexp"
|
|
|
|
capsuleapi "github.com/projectcapsule/capsule/pkg/api"
|
|
)
|
|
|
|
const (
|
|
TenantCRDName = "tenants.capsule.clastix.io"
|
|
)
|
|
|
|
type Configuration interface {
|
|
ProtectedNamespaceRegexp() (*regexp.Regexp, error)
|
|
ForceTenantPrefix() bool
|
|
// EnableTLSConfiguration enabled the TLS reconciler, responsible for creating CA and TLS certificate required
|
|
// for the CRD conversion and webhooks.
|
|
EnableTLSConfiguration() bool
|
|
AllowServiceAccountPromotion() bool
|
|
TLSSecretName() string
|
|
MutatingWebhookConfigurationName() string
|
|
ValidatingWebhookConfigurationName() string
|
|
TenantCRDName() string
|
|
UserNames() []string
|
|
UserGroups() []string
|
|
Users() capsuleapi.UserListSpec
|
|
GetUsersByStatus() capsuleapi.UserListSpec
|
|
IgnoreUserWithGroups() []string
|
|
ForbiddenUserNodeLabels() *capsuleapi.ForbiddenListSpec
|
|
ForbiddenUserNodeAnnotations() *capsuleapi.ForbiddenListSpec
|
|
Administrators() capsuleapi.UserListSpec
|
|
}
|