Skip to content

Commit 74ba11b

Browse files
committed
[kubeadm] Adds json struct tags to exposed API types
Signed-off-by: Chuck Ha <[email protected]>
1 parent b69cc78 commit 74ba11b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmd/kubeadm/app/apis/kubeadm/v1beta1/bootstraptokenstring.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import (
3131
// of view and as an authentication method for the node in the bootstrap phase of
3232
// "kubeadm join". This token is and should be short-lived
3333
type BootstrapTokenString struct {
34-
ID string
35-
Secret string
34+
ID string `json:"-"`
35+
Secret string `json:"-"`
3636
}
3737

3838
// MarshalJSON implements the json.Marshaler interface.

cmd/kubeadm/app/apis/kubeadm/v1beta2/bootstraptokenstring.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import (
3131
// of view and as an authentication method for the node in the bootstrap phase of
3232
// "kubeadm join". This token is and should be short-lived
3333
type BootstrapTokenString struct {
34-
ID string
35-
Secret string
34+
ID string `json:"-"`
35+
Secret string `json:"-"`
3636
}
3737

3838
// MarshalJSON implements the json.Marshaler interface.

0 commit comments

Comments
 (0)