Fixes DDNS

This commit is contained in:
thebsdbox
2021-05-13 17:10:44 +01:00
parent 874a0bb6d1
commit 5545471391
5 changed files with 48 additions and 2 deletions

View File

@@ -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")
}