From 8a0db76bf1a548ef34e735957f838065c13c891a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 10:34:41 +0000 Subject: [PATCH] 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> --- api/v1beta1/tenant_status.go | 2 -- api/v1beta1/zz_generated.deepcopy.go | 5 ----- api/v1beta2/tenant_conversion_hub.go | 2 -- charts/capsule/crds/capsule.clastix.io_tenants.yaml | 5 ----- 4 files changed, 14 deletions(-) diff --git a/api/v1beta1/tenant_status.go b/api/v1beta1/tenant_status.go index 1695e1d9..b1022c33 100644 --- a/api/v1beta1/tenant_status.go +++ b/api/v1beta1/tenant_status.go @@ -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"` diff --git a/api/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go index b9524b8b..72c9b30d 100644 --- a/api/v1beta1/zz_generated.deepcopy.go +++ b/api/v1beta1/zz_generated.deepcopy.go @@ -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)) diff --git a/api/v1beta2/tenant_conversion_hub.go b/api/v1beta2/tenant_conversion_hub.go index dba02414..dc12dcb6 100644 --- a/api/v1beta2/tenant_conversion_hub.go +++ b/api/v1beta2/tenant_conversion_hub.go @@ -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: diff --git a/charts/capsule/crds/capsule.clastix.io_tenants.yaml b/charts/capsule/crds/capsule.clastix.io_tenants.yaml index 5b88b71b..c6d9df8c 100644 --- a/charts/capsule/crds/capsule.clastix.io_tenants.yaml +++ b/charts/capsule/crds/capsule.clastix.io_tenants.yaml @@ -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