mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/kube-vip/kube-vip.git
synced 2026-09-20 08:03:47 +08:00
Fixes DDNS
This commit is contained in:
@@ -49,7 +49,7 @@ var kubeManifestPod = &cobra.Command{
|
||||
}
|
||||
|
||||
// The control plane has a requirement for a VIP being specified
|
||||
if initConfig.EnableControlPane && (initConfig.VIP == "" && initConfig.Address == "") {
|
||||
if initConfig.EnableControlPane && (initConfig.VIP == "" && initConfig.Address == "" && initConfig.DDNS == false) {
|
||||
cmd.Help()
|
||||
log.Fatalln("No address is specified for kube-vip to expose services on")
|
||||
}
|
||||
@@ -75,7 +75,7 @@ var kubeManifestDaemon = &cobra.Command{
|
||||
}
|
||||
|
||||
// The control plane has a requirement for a VIP being specified
|
||||
if initConfig.EnableControlPane && (initConfig.VIP == "" && initConfig.Address == "") {
|
||||
if initConfig.EnableControlPane && (initConfig.VIP == "" && initConfig.Address == "" && initConfig.DDNS == false) {
|
||||
cmd.Help()
|
||||
log.Fatalln("No address is specified for kube-vip to expose services on")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user