1
0
mirror of https://github.com/rancher/types.git synced 2025-06-26 05:31:32 +00:00

Merge pull request #17 from alena1108/statusnopointer

Cluster status not a pointer value
This commit is contained in:
Alena Prokharchyk 2017-11-15 12:11:35 -08:00 committed by GitHub
commit 0ca47dadcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 10 deletions

View File

@ -31,7 +31,7 @@ type Cluster struct {
Spec ClusterSpec `json:"spec"`
// Most recent observed status of the cluster. More info:
// https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#spec-and-status
Status *ClusterStatus `json:"status"`
Status ClusterStatus `json:"status"`
}
type ClusterSpec struct {

View File

@ -73,15 +73,7 @@ func (in *Cluster) DeepCopyInto(out *Cluster) {
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
if in.Status != nil {
in, out := &in.Status, &out.Status
if *in == nil {
*out = nil
} else {
*out = new(ClusterStatus)
(*in).DeepCopyInto(*out)
}
}
in.Status.DeepCopyInto(&out.Status)
return
}