|
| 1 | +diff --git a/vendor/github.com/coreos/etcd-operator/pkg/spec/cluster.go b/vendor/github.com/coreos/etcd-operator/pkg/spec/cluster.go |
| 2 | +index dbafdff..cbe1fd2 100644 |
| 3 | +--- a/vendor/github.com/coreos/etcd-operator/pkg/spec/cluster.go |
| 4 | ++++ b/vendor/github.com/coreos/etcd-operator/pkg/spec/cluster.go |
| 5 | +@@ -21,8 +21,7 @@ import ( |
| 6 | + "strings" |
| 7 | + "time" |
| 8 | + |
| 9 | +- "k8s.io/client-go/pkg/api/meta/metatypes" |
| 10 | +- "k8s.io/client-go/pkg/api/unversioned" |
| 11 | ++ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 12 | + "k8s.io/client-go/pkg/api/v1" |
| 13 | + ) |
| 14 | + |
| 15 | +@@ -45,17 +44,17 @@ func TPRName() string { |
| 16 | + } |
| 17 | + |
| 18 | + type Cluster struct { |
| 19 | +- unversioned.TypeMeta `json:",inline"` |
| 20 | +- Metadata v1.ObjectMeta `json:"metadata,omitempty"` |
| 21 | +- Spec ClusterSpec `json:"spec"` |
| 22 | +- Status ClusterStatus `json:"status"` |
| 23 | ++ metav1.TypeMeta `json:",inline"` |
| 24 | ++ Metadata v1.ObjectMeta `json:"metadata,omitempty"` |
| 25 | ++ Spec ClusterSpec `json:"spec"` |
| 26 | ++ Status ClusterStatus `json:"status"` |
| 27 | + } |
| 28 | + |
| 29 | +-func (c *Cluster) AsOwner() metatypes.OwnerReference { |
| 30 | ++func (c *Cluster) AsOwner() metav1.OwnerReference { |
| 31 | + trueVar := true |
| 32 | + // TODO: In 1.6 this is gonna be "k8s.io/kubernetes/pkg/apis/meta/v1" |
| 33 | +- // Both api.OwnerReference and metatypes.OwnerReference are combined into that. |
| 34 | +- return metatypes.OwnerReference{ |
| 35 | ++ // Both api.OwnerReference and metav1.OwnerReference are combined into that. |
| 36 | ++ return metav1.OwnerReference{ |
| 37 | + APIVersion: c.APIVersion, |
| 38 | + Kind: c.Kind, |
| 39 | + Name: c.Metadata.Name, |
| 40 | +diff --git a/vendor/github.com/coreos/etcd-operator/pkg/spec/etcd_cluster_list.go b/vendor/github.com/coreos/etcd-operator/pkg/spec/etcd_cluster_list.go |
| 41 | +index 4d8bfd7..c4996bc 100644 |
| 42 | +--- a/vendor/github.com/coreos/etcd-operator/pkg/spec/etcd_cluster_list.go |
| 43 | ++++ b/vendor/github.com/coreos/etcd-operator/pkg/spec/etcd_cluster_list.go |
| 44 | +@@ -17,15 +17,15 @@ package spec |
| 45 | + import ( |
| 46 | + "encoding/json" |
| 47 | + |
| 48 | +- "k8s.io/client-go/pkg/api/unversioned" |
| 49 | ++ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 50 | + ) |
| 51 | + |
| 52 | + // ClusterList is a list of etcd clusters. |
| 53 | + type ClusterList struct { |
| 54 | +- unversioned.TypeMeta `json:",inline"` |
| 55 | ++ metav1.TypeMeta `json:",inline"` |
| 56 | + // Standard list metadata |
| 57 | + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata |
| 58 | +- Metadata unversioned.ListMeta `json:"metadata,omitempty"` |
| 59 | ++ Metadata metav1.ListMeta `json:"metadata,omitempty"` |
| 60 | + // Items is a list of third party objects |
| 61 | + Items []Cluster `json:"items"` |
| 62 | + } |
0 commit comments