[kubeadm] Adds json struct tags to exposed API types

Signed-off-by: Chuck Ha <chuckh@vmware.com>
This commit is contained in:
Chuck Ha 2019-07-11 14:55:03 -04:00
parent b69cc78e58
commit 74ba11b0cd
No known key found for this signature in database
GPG Key ID: 46F85E930D1BD5CA
2 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,8 @@ import (
// 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
type BootstrapTokenString struct {
ID string
Secret string
ID string `json:"-"`
Secret string `json:"-"`
}
// MarshalJSON implements the json.Marshaler interface.

View File

@ -31,8 +31,8 @@ import (
// 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
type BootstrapTokenString struct {
ID string
Secret string
ID string `json:"-"`
Secret string `json:"-"`
}
// MarshalJSON implements the json.Marshaler interface.