forked from coreos/etcd-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is known issue with TPR in client-go: kubernetes/client-go#8 Workarounds: - We include `Metadata` field in object explicitly. - Copy the solutions from client-go TPR examples to work around a known problem with third-party resources and ugorji. ```go type ClusterListCopy ClusterList type ClusterCopy Cluster func (c *Cluster) UnmarshalJSON(data []byte) error { tmp := ClusterCopy{} err := json.Unmarshal(data, &tmp) if err != nil { return err } tmp2 := Cluster(tmp) *c = tmp2 return nil } func (cl *ClusterList) UnmarshalJSON(data []byte) error { tmp := ClusterListCopy{} err := json.Unmarshal(data, &tmp) if err != nil { return err } tmp2 := ClusterList(tmp) *cl = tmp2 return nil } ```
- Loading branch information
1 parent
c7d5e7b
commit 2226ae7
Showing
17 changed files
with
181 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.