mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Change taint/toleration annotations to api fields.
This commit is contained in:
@@ -21,18 +21,6 @@ import "encoding/json"
|
||||
// This file implements json marshaling/unmarshaling interfaces on objects that are currently marshaled into annotations
|
||||
// to prevent anyone from marshaling these internal structs.
|
||||
|
||||
var _ = json.Marshaler(Taint{})
|
||||
var _ = json.Unmarshaler(&Taint{})
|
||||
|
||||
func (Taint) MarshalJSON() ([]byte, error) { panic("do not marshal internal struct") }
|
||||
func (*Taint) UnmarshalJSON([]byte) error { panic("do not unmarshal to internal struct") }
|
||||
|
||||
var _ = json.Marshaler(Toleration{})
|
||||
var _ = json.Unmarshaler(&Toleration{})
|
||||
|
||||
func (Toleration) MarshalJSON() ([]byte, error) { panic("do not marshal internal struct") }
|
||||
func (*Toleration) UnmarshalJSON([]byte) error { panic("do not unmarshal to internal struct") }
|
||||
|
||||
var _ = json.Marshaler(&AvoidPods{})
|
||||
var _ = json.Unmarshaler(&AvoidPods{})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user