Merge pull request #101576 from m14815/commit-21.4.4

kubeadm: change comment about json.Unmarshaller to json.Unmarshaler
This commit is contained in:
Kubernetes Prow Robot 2021-04-28 22:34:50 -07:00 committed by GitHub
commit b31f31cdbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ func (bts BootstrapTokenString) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf(`"%s"`, bts.String())), nil
}
// UnmarshalJSON implements the json.Unmarshaller interface.
// UnmarshalJSON implements the json.Unmarshaler interface.
func (bts *BootstrapTokenString) UnmarshalJSON(b []byte) error {
// If the token is represented as "", just return quickly without an error
if len(b) == 0 {