commit
03c43b611c
3 changed files with 95 additions and 3 deletions
|
|
@ -128,10 +128,20 @@ func NewIngressController(backend ingress.Controller) *GenericController {
|
|||
glog.Infof("service %v validated as source of Ingress status", *publishSvc)
|
||||
}
|
||||
|
||||
if *configMap != "" {
|
||||
_, _, err = k8s.ParseNameNS(*configMap)
|
||||
for _, configMap := range []string{*configMap, *tcpConfigMapName, *udpConfigMapName} {
|
||||
_, err = k8s.IsValidConfigMap(kubeClient, configMap)
|
||||
|
||||
if err != nil {
|
||||
glog.Fatalf("configmap error: %v", err)
|
||||
glog.Fatalf("%v", err)
|
||||
}
|
||||
}
|
||||
|
||||
if *watchNamespace != "" {
|
||||
|
||||
_, err = k8s.IsValidNamespace(kubeClient, *watchNamespace)
|
||||
|
||||
if err != nil {
|
||||
glog.Fatalf("no watchNamespace with name %v found: %v", *watchNamespace, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue