mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-20 13:06:51 +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>
24 lines
676 B
Go
24 lines
676 B
Go
// Copyright 2020-2026 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package v1beta1
|
|
|
|
// +kubebuilder:validation:Enum=Cordoned;Active
|
|
type tenantState string
|
|
|
|
const (
|
|
TenantStateActive tenantState = "Active"
|
|
TenantStateCordoned tenantState = "Cordoned"
|
|
)
|
|
|
|
// Returns the observed state of the Tenant.
|
|
type TenantStatus struct {
|
|
// +kubebuilder:default=Active
|
|
// The operational state of the Tenant. Possible values are "Active", "Cordoned".
|
|
State tenantState `json:"state"`
|
|
// How many namespaces are assigned to the Tenant.
|
|
Size uint `json:"size"`
|
|
// List of namespaces assigned to the Tenant.
|
|
Namespaces []string `json:"namespaces,omitempty"`
|
|
}
|