Skip to content

Commit 7e7bb5c

Browse files
authored
Merge pull request kubernetes#80050 from chuckha/jsontags
[kubeadm] Adds json struct tags to exposed API types
2 parents c30f024 + 74ba11b commit 7e7bb5c

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)