diff --git a/apis/management.cattle.io/v3/zz_generated_deepcopy.go b/apis/management.cattle.io/v3/zz_generated_deepcopy.go index aebcf8a9..3b44531a 100644 --- a/apis/management.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/management.cattle.io/v3/zz_generated_deepcopy.go @@ -303,6 +303,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { in.(*Project).DeepCopyInto(out.(*Project)) return nil }, InType: reflect.TypeOf(&Project{})}, + conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { + in.(*ProjectCondition).DeepCopyInto(out.(*ProjectCondition)) + return nil + }, InType: reflect.TypeOf(&ProjectCondition{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { in.(*ProjectList).DeepCopyInto(out.(*ProjectList)) return nil @@ -319,6 +323,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { in.(*ProjectSpec).DeepCopyInto(out.(*ProjectSpec)) return nil }, InType: reflect.TypeOf(&ProjectSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { + in.(*ProjectStatus).DeepCopyInto(out.(*ProjectStatus)) + return nil + }, InType: reflect.TypeOf(&ProjectStatus{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { in.(*Question).DeepCopyInto(out.(*Question)) return nil @@ -2268,6 +2276,7 @@ func (in *Project) DeepCopyInto(out *Project) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) return } @@ -2290,6 +2299,22 @@ func (in *Project) DeepCopyObject() runtime.Object { } } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectCondition) DeepCopyInto(out *ProjectCondition) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectCondition. +func (in *ProjectCondition) DeepCopy() *ProjectCondition { + if in == nil { + return nil + } + out := new(ProjectCondition) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProjectList) DeepCopyInto(out *ProjectList) { *out = *in @@ -2403,6 +2428,27 @@ func (in *ProjectSpec) DeepCopy() *ProjectSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ProjectCondition, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus. +func (in *ProjectStatus) DeepCopy() *ProjectStatus { + if in == nil { + return nil + } + out := new(ProjectStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Question) DeepCopyInto(out *Question) { *out = *in diff --git a/client/management/v3/zz_generated_project.go b/client/management/v3/zz_generated_project.go index 7cc08d8f..6295213f 100644 --- a/client/management/v3/zz_generated_project.go +++ b/client/management/v3/zz_generated_project.go @@ -8,6 +8,7 @@ const ( ProjectType = "project" ProjectFieldAnnotations = "annotations" ProjectFieldClusterId = "clusterId" + ProjectFieldConditions = "conditions" ProjectFieldCreated = "created" ProjectFieldFinalizers = "finalizers" ProjectFieldId = "id" @@ -16,22 +17,29 @@ const ( ProjectFieldOwnerReferences = "ownerReferences" ProjectFieldPodSecurityPolicyTemplateId = "podSecurityPolicyTemplateId" ProjectFieldRemoved = "removed" + ProjectFieldState = "state" + ProjectFieldTransitioning = "transitioning" + ProjectFieldTransitioningMessage = "transitioningMessage" ProjectFieldUuid = "uuid" ) type Project struct { types.Resource - Annotations map[string]string `json:"annotations,omitempty"` - ClusterId string `json:"clusterId,omitempty"` - Created string `json:"created,omitempty"` - Finalizers []string `json:"finalizers,omitempty"` - Id string `json:"id,omitempty"` - Labels map[string]string `json:"labels,omitempty"` - Name string `json:"name,omitempty"` - OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"` - PodSecurityPolicyTemplateId string `json:"podSecurityPolicyTemplateId,omitempty"` - Removed string `json:"removed,omitempty"` - Uuid string `json:"uuid,omitempty"` + Annotations map[string]string `json:"annotations,omitempty"` + ClusterId string `json:"clusterId,omitempty"` + Conditions []ProjectCondition `json:"conditions,omitempty"` + Created string `json:"created,omitempty"` + Finalizers []string `json:"finalizers,omitempty"` + Id string `json:"id,omitempty"` + Labels map[string]string `json:"labels,omitempty"` + Name string `json:"name,omitempty"` + OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"` + PodSecurityPolicyTemplateId string `json:"podSecurityPolicyTemplateId,omitempty"` + Removed string `json:"removed,omitempty"` + State string `json:"state,omitempty"` + Transitioning string `json:"transitioning,omitempty"` + TransitioningMessage string `json:"transitioningMessage,omitempty"` + Uuid string `json:"uuid,omitempty"` } type ProjectCollection struct { types.Collection diff --git a/client/management/v3/zz_generated_project_condition.go b/client/management/v3/zz_generated_project_condition.go new file mode 100644 index 00000000..13947166 --- /dev/null +++ b/client/management/v3/zz_generated_project_condition.go @@ -0,0 +1,20 @@ +package client + +const ( + ProjectConditionType = "projectCondition" + ProjectConditionFieldLastTransitionTime = "lastTransitionTime" + ProjectConditionFieldLastUpdateTime = "lastUpdateTime" + ProjectConditionFieldMessage = "message" + ProjectConditionFieldReason = "reason" + ProjectConditionFieldStatus = "status" + ProjectConditionFieldType = "type" +) + +type ProjectCondition struct { + LastTransitionTime string `json:"lastTransitionTime,omitempty"` + LastUpdateTime string `json:"lastUpdateTime,omitempty"` + Message string `json:"message,omitempty"` + Reason string `json:"reason,omitempty"` + Status string `json:"status,omitempty"` + Type string `json:"type,omitempty"` +} diff --git a/client/management/v3/zz_generated_project_status.go b/client/management/v3/zz_generated_project_status.go new file mode 100644 index 00000000..f45b3220 --- /dev/null +++ b/client/management/v3/zz_generated_project_status.go @@ -0,0 +1,10 @@ +package client + +const ( + ProjectStatusType = "projectStatus" + ProjectStatusFieldConditions = "conditions" +) + +type ProjectStatus struct { + Conditions []ProjectCondition `json:"conditions,omitempty"` +}