[kubeadm] Adds json struct tags to exposed API types
Signed-off-by: Chuck Ha <chuckh@vmware.com>
This commit is contained in:
@@ -31,8 +31,8 @@ import (
|
|||||||
// of view and as an authentication method for the node in the bootstrap phase of
|
// of view and as an authentication method for the node in the bootstrap phase of
|
||||||
// "kubeadm join". This token is and should be short-lived
|
// "kubeadm join". This token is and should be short-lived
|
||||||
type BootstrapTokenString struct {
|
type BootstrapTokenString struct {
|
||||||
ID string
|
ID string `json:"-"`
|
||||||
Secret string
|
Secret string `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalJSON implements the json.Marshaler interface.
|
// MarshalJSON implements the json.Marshaler interface.
|
||||||
|
@@ -31,8 +31,8 @@ import (
|
|||||||
// of view and as an authentication method for the node in the bootstrap phase of
|
// of view and as an authentication method for the node in the bootstrap phase of
|
||||||
// "kubeadm join". This token is and should be short-lived
|
// "kubeadm join". This token is and should be short-lived
|
||||||
type BootstrapTokenString struct {
|
type BootstrapTokenString struct {
|
||||||
ID string
|
ID string `json:"-"`
|
||||||
Secret string
|
Secret string `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalJSON implements the json.Marshaler interface.
|
// MarshalJSON implements the json.Marshaler interface.
|
||||||
|
Reference in New Issue
Block a user