mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-20 04:56:44 +00:00
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>
This commit is contained in:
co-authored by
oliverbaehler
parent
95e8a8c312
commit
21ab275fa2
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user