Skip to content

Commit

Permalink
Merge pull request #80050 from chuckha/jsontags
Browse files Browse the repository at this point in the history
[kubeadm] Adds json struct tags to exposed API types
  • Loading branch information
k8s-ci-robot committed Jul 16, 2019
2 parents c30f024 + 74ba11b commit 7e7bb5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/kubeadm/app/apis/kubeadm/v1beta1/bootstraptokenstring.go
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions cmd/kubeadm/app/apis/kubeadm/v1beta2/bootstraptokenstring.go
Expand Up @@ -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.
Expand Down

0 comments on commit 7e7bb5c

Please sign in to comment.