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 )