Remove unnecessary Nodes field from v1beta1 hub status and conversion

Agent-Logs-Url: https://github.com/projectcapsule/capsule/sessions/88bfaa97-101d-418d-b873-0f1b2e53d495

Co-authored-by: oliverbaehler <26610571+oliverbaehler@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-21 10:34:41 +00:00
committed by GitHub
parent 21ab275fa2
commit 8a0db76bf1
4 changed files with 0 additions and 14 deletions

View File

@@ -13,8 +13,6 @@ const (
// Returns the observed state of the Tenant.
type TenantStatus struct {
// List of nodes assigned to the Tenant.
Nodes []string `json:"nodes,omitempty"`
// +kubebuilder:default=Active
// The operational state of the Tenant. Possible values are "Active", "Cordoned".
State tenantState `json:"state"`

View File

@@ -353,11 +353,6 @@ func (in *TenantSpec) DeepCopy() *TenantSpec {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TenantStatus) DeepCopyInto(out *TenantStatus) {
*out = *in
if in.Nodes != nil {
in, out := &in.Nodes, &out.Nodes
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.Namespaces != nil {
in, out := &in.Namespaces, &out.Namespaces
*out = make([]string, len(*in))

View File

@@ -158,7 +158,6 @@ func (in *Tenant) ConvertFrom(raw conversion.Hub) error {
in.SetAnnotations(annotations)
in.Status.Namespaces = src.Status.Namespaces
in.Status.Nodes = src.Status.Nodes
in.Status.Size = src.Status.Size
switch src.Status.State {
@@ -281,7 +280,6 @@ func (in *Tenant) ConvertTo(raw conversion.Hub) error {
dst.Status.Size = in.Status.Size
dst.Status.Namespaces = in.Status.Namespaces
dst.Status.Nodes = in.Status.Nodes
switch in.Status.State {
case TenantStateActive:

View File

@@ -1059,11 +1059,6 @@ spec:
items:
type: string
type: array
nodes:
description: List of nodes assigned to the Tenant.
items:
type: string
type: array
size:
description: How many namespaces are assigned to the Tenant.
type: integer