mirror of
https://github.com/rancher/types.git
synced 2025-08-28 00:30:31 +00:00
Fix listmeta
This commit is contained in:
parent
ebe3c76ce9
commit
2cc7dfb96b
@ -37,7 +37,7 @@ func (in *PodSecurityPolicyTemplate) DeepCopyObject() runtime.Object {
|
||||
func (in *PodSecurityPolicyTemplateList) DeepCopyInto(out *PodSecurityPolicyTemplateList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.ListMeta = in.ListMeta
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]PodSecurityPolicyTemplate, len(*in))
|
||||
@ -98,7 +98,7 @@ func (in *Project) DeepCopyObject() runtime.Object {
|
||||
func (in *ProjectList) DeepCopyInto(out *ProjectList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.ListMeta = in.ListMeta
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]Project, len(*in))
|
||||
@ -164,7 +164,7 @@ func (in *ProjectRoleBinding) DeepCopyObject() runtime.Object {
|
||||
func (in *ProjectRoleBindingList) DeepCopyInto(out *ProjectRoleBindingList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.ListMeta = in.ListMeta
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ProjectRoleBinding, len(*in))
|
||||
@ -237,7 +237,7 @@ func (in *RoleTemplate) DeepCopyObject() runtime.Object {
|
||||
func (in *RoleTemplateList) DeepCopyInto(out *RoleTemplateList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.ListMeta = in.ListMeta
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]RoleTemplate, len(*in))
|
||||
|
@ -27,9 +27,9 @@ var (
|
||||
)
|
||||
|
||||
type PodSecurityPolicyTemplateList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
Items []PodSecurityPolicyTemplate
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []PodSecurityPolicyTemplate
|
||||
}
|
||||
|
||||
type PodSecurityPolicyTemplateHandlerFunc func(key string, obj *PodSecurityPolicyTemplate) error
|
||||
|
@ -27,9 +27,9 @@ var (
|
||||
)
|
||||
|
||||
type ProjectList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
Items []Project
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []Project
|
||||
}
|
||||
|
||||
type ProjectHandlerFunc func(key string, obj *Project) error
|
||||
|
@ -27,9 +27,9 @@ var (
|
||||
)
|
||||
|
||||
type ProjectRoleBindingList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
Items []ProjectRoleBinding
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []ProjectRoleBinding
|
||||
}
|
||||
|
||||
type ProjectRoleBindingHandlerFunc func(key string, obj *ProjectRoleBinding) error
|
||||
|
@ -27,9 +27,9 @@ var (
|
||||
)
|
||||
|
||||
type RoleTemplateList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
Items []RoleTemplate
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []RoleTemplate
|
||||
}
|
||||
|
||||
type RoleTemplateHandlerFunc func(key string, obj *RoleTemplate) error
|
||||
|
@ -27,9 +27,9 @@ var (
|
||||
)
|
||||
|
||||
type ClusterList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
Items []Cluster
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []Cluster
|
||||
}
|
||||
|
||||
type ClusterHandlerFunc func(key string, obj *Cluster) error
|
||||
|
@ -27,9 +27,9 @@ var (
|
||||
)
|
||||
|
||||
type ClusterNodeList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
Items []ClusterNode
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []ClusterNode
|
||||
}
|
||||
|
||||
type ClusterNodeHandlerFunc func(key string, obj *ClusterNode) error
|
||||
|
@ -99,7 +99,7 @@ func (in *ClusterCondition) DeepCopy() *ClusterCondition {
|
||||
func (in *ClusterList) DeepCopyInto(out *ClusterList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.ListMeta = in.ListMeta
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]Cluster, len(*in))
|
||||
@ -159,7 +159,7 @@ func (in *ClusterNode) DeepCopyObject() runtime.Object {
|
||||
func (in *ClusterNodeList) DeepCopyInto(out *ClusterNodeList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.ListMeta = in.ListMeta
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ClusterNode, len(*in))
|
||||
|
@ -3,4 +3,4 @@ github.com/rancher/types
|
||||
|
||||
k8s.io/kubernetes v1.8.3 transitive=true,staging=true
|
||||
bitbucket.org/ww/goautoneg a547fc61f48d567d5b4ec6f8aee5573d8efce11d https://github.com/rancher/goautoneg.git
|
||||
github.com/rancher/norman 068b9eb94326e2c566c5eed7636163b1b407c4c0
|
||||
github.com/rancher/norman 69589bf00bfd81f9baa3b2d1ec6cccbe26bc7499
|
||||
|
2
vendor/github.com/rancher/norman/generator/controller_template.go
generated
vendored
2
vendor/github.com/rancher/norman/generator/controller_template.go
generated
vendored
@ -33,7 +33,7 @@ var (
|
||||
|
||||
type {{.schema.CodeName}}List struct {
|
||||
metav1.TypeMeta %BACK%json:",inline"%BACK%
|
||||
metav1.ObjectMeta %BACK%json:"metadata,omitempty"%BACK%
|
||||
metav1.ListMeta %BACK%json:"metadata,omitempty"%BACK%
|
||||
Items []{{.schema.CodeName}}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user