Skip to content

Commit 8458cfe

Browse files
authored
Merge pull request kubernetes#132258 from J3m3/patch
Correct error message to print `ResetConfigurationKind`
2 parents ad4cc12 + 04110fc commit 8458cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/util/config/resetconfiguration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func documentMapToResetConfiguration(gvkmap kubeadmapi.DocumentMap, allowDepreca
135135
}
136136

137137
if len(resetBytes) == 0 {
138-
return nil, errors.Errorf("no %s found in the supplied config", constants.JoinConfigurationKind)
138+
return nil, errors.Errorf("no %s found in the supplied config", constants.ResetConfigurationKind)
139139
}
140140

141141
internalcfg := &kubeadmapi.ResetConfiguration{}

0 commit comments

Comments
 (0)