From 21ab275fa2b143a00dee0c83cb2216095bbae034 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Apr 2026 09:27:42 +0000 Subject: [PATCH] Regenerate tenant CRDs and deepcopies for node status Agent-Logs-Url: https://github.com/projectcapsule/capsule/sessions/35d75f80-a2f5-4f3f-a0f8-db8fcf20edce Co-authored-by: oliverbaehler <26610571+oliverbaehler@users.noreply.github.com> --- api/v1beta1/zz_generated.deepcopy.go | 5 +++++ api/v1beta2/zz_generated.deepcopy.go | 5 +++++ charts/capsule/crds/capsule.clastix.io_tenants.yaml | 10 ++++++++++ e2e/tenant_node_status_test.go | 4 ++-- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/api/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go index 72c9b30d..b9524b8b 100644 --- a/api/v1beta1/zz_generated.deepcopy.go +++ b/api/v1beta1/zz_generated.deepcopy.go @@ -353,6 +353,11 @@ 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/zz_generated.deepcopy.go b/api/v1beta2/zz_generated.deepcopy.go index 3ecdc35d..5360ec89 100644 --- a/api/v1beta2/zz_generated.deepcopy.go +++ b/api/v1beta2/zz_generated.deepcopy.go @@ -1257,6 +1257,11 @@ func (in *TenantAvailableClassesStatus) DeepCopy() *TenantAvailableClassesStatus // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TenantAvailableStatus) DeepCopyInto(out *TenantAvailableStatus) { *out = *in + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]string, len(*in)) + copy(*out, *in) + } in.Classes.DeepCopyInto(&out.Classes) } diff --git a/charts/capsule/crds/capsule.clastix.io_tenants.yaml b/charts/capsule/crds/capsule.clastix.io_tenants.yaml index b54d64cb..5b88b71b 100644 --- a/charts/capsule/crds/capsule.clastix.io_tenants.yaml +++ b/charts/capsule/crds/capsule.clastix.io_tenants.yaml @@ -1059,6 +1059,11 @@ 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 @@ -2869,6 +2874,11 @@ spec: items: type: string type: array + nodes: + description: Available Nodes within Tenant + items: + type: string + type: array owners: description: Collected owners for this tenant items: diff --git a/e2e/tenant_node_status_test.go b/e2e/tenant_node_status_test.go index d3b8b344..489ad232 100644 --- a/e2e/tenant_node_status_test.go +++ b/e2e/tenant_node_status_test.go @@ -63,8 +63,8 @@ var _ = Describe("when Tenant handles Node status", Label("tenant", "nodes", "st } var ( - allNodeNames []string - primaryNode string + allNodeNames []string + primaryNode string secondaryNode string )