Files
capsule/pkg/runtime/events/reasons.go
Oliver Bähler a6b830b1af feat: add ruleset api(#1844)
* 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>
2026-01-27 14:28:48 +01:00

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"
)