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