mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #80050 from chuckha/jsontags
[kubeadm] Adds json struct tags to exposed API types
This commit is contained in:
commit
7e7bb5cf3a
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user