mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 18:09:58 +00:00
* fix(controller): decode old object for delete requests Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: modernize golang Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: modernize golang Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: modernize golang Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * fix(config): remove usergroups default Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * fix(config): remove usergroups default Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * sec(ghsa-2ww6-hf35-mfjm): intercept namespace subresource Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * feat(api): add rulestatus api Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: conflicts Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * feat(api): add rulestatus api Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * feat(api): add rulestatus api Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * feat(api): add rulestatus api Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * feat(api): add rulestatus api Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * feat(api): add rulestatus api Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * feat(api): add rulestatus api Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
60 lines
2.3 KiB
Go
60 lines
2.3 KiB
Go
// Copyright 2020-2026 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package events
|
|
|
|
const (
|
|
// Generic.
|
|
ReasonTenantResourceWriteOp string = "TenantResourceWriteOp"
|
|
ReasonOverprovision string = "Overprovisioned"
|
|
ReasonCordoning string = "Cordoned"
|
|
// ForbiddenLabelReason used as reason string to deny forbidden labels.
|
|
ReasonForbiddenLabel string = "ForbiddenLabel"
|
|
// ForbiddenAnnotationReason used as reason string to deny forbidden annotations.
|
|
ReasonForbiddenAnnotation string = "ForbiddenAnnotation"
|
|
|
|
// Namespace.
|
|
ReasonNamespaceHijack string = "ReasonNamespacePatch"
|
|
|
|
// Tenant.
|
|
ReasonTenantDefaulted string = "TenantDefaulted"
|
|
ReasonTenantAssigned string = "TenantAssigned"
|
|
ReasonInvalidTenantPrefix string = "InvalidTenantPrefix"
|
|
ReasonPromotionDenied string = "ReasonPromotionDenied"
|
|
|
|
// Classes.
|
|
ReasonMissingStorageClass string = "MissingStorageClass"
|
|
ReasonForbiddenStorageClass string = "ForbiddenStorageClass"
|
|
ReasonForbiddenPriorityClass string = "ForbiddenPriorityClass"
|
|
ReasonForbiddenRuntimeClass string = "ForbiddenRuntimeClass"
|
|
ReasonForbiddenIngressClass string = "ForbiddenIngressClass"
|
|
ReasonMissingIngressClass string = "MissingIngressClass"
|
|
ReasonForbiddenGatewayClass string = "ForbiddenGatewayClass"
|
|
ReasonMissingGatewayClass string = "MissingGatewayClass"
|
|
ReasonMissingDeviceClass string = "MissingDeviceClass"
|
|
ReasonForbiddenDeviceClass string = "ForbiddenDeviceClass"
|
|
|
|
// Pods.
|
|
ReasonMissingFQCI string = "MissingFQCI"
|
|
ReasonForbiddenContainerRegistry string = "ForbiddenContainerRegistry"
|
|
ReasonForbiddenPullPolicy string = "ForbiddenPullPolicy"
|
|
|
|
// Ingress.
|
|
ReasonWildcardDenied string = "WildcardDenied"
|
|
ReasonIngressHostnameNotValid string = "IngressHostnameNotValid"
|
|
ReasonIngressHostnameEmpty string = "IngressHostnameEmpty"
|
|
ReasonIngressHostnameCollision string = "IngressHostnameCollision"
|
|
|
|
// Services.
|
|
ReasonForbiddenExternalServiceIP string = "ForbiddenExternalServiceIP"
|
|
ReasonForbiddenLoadBalancer string = "ForbiddenLoadBalancer"
|
|
ReasonForbiddenExternalName string = "ForbiddenExternalName"
|
|
ReasonForbiddenNodePort string = "ForbiddenNodePort"
|
|
|
|
// Storage.
|
|
ReasonCrossTenantReference string = "CrossTenantReference"
|
|
|
|
// ResourcePools.
|
|
ReasonDisassociated string = "Disassociated"
|
|
)
|