Merge pull request #1292 from zgfh/feature/karmada-init
karmada init: add more message for easy debug when nodePort exist
This commit is contained in:
commit
499dcaa5e3
|
@ -109,7 +109,7 @@ func (i *CommandInitOption) Complete() error {
|
|||
i.KubeClientSet = clientSet
|
||||
|
||||
if !i.isNodePortExist() {
|
||||
return fmt.Errorf("nodePort %v already exist", i.KarmadaAPIServerNodePort)
|
||||
return fmt.Errorf("nodePort of karmada apiserver %v already exist", i.KarmadaAPIServerNodePort)
|
||||
}
|
||||
|
||||
if i.EtcdStorageMode == "hostPath" && i.EtcdNodeSelectorLabels == "" {
|
||||
|
|
Loading…
Reference in New Issue