mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-05-25 10:42:48 +00:00
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>
This commit is contained in:
committed by
GitHub
parent
21ab275fa2
commit
8a0db76bf1
@@ -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"`
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user