Skip to content

Commit

Permalink
Merge pull request #578 from jcmoraisjr/jm-watch-ns-permission
Browse files Browse the repository at this point in the history
Fix permission using watch-namespace
  • Loading branch information
jcmoraisjr authored May 11, 2020
2 parents 5831677 + 5d4c5bb commit 0de7eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/common/ingress/controller/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func NewIngressController(backend ingress.Controller) *GenericController {
}

if *watchNamespace != "" {
_, err = kubeClient.CoreV1().Namespaces().Get(*watchNamespace, metav1.GetOptions{})
_, err = kubeClient.ExtensionsV1beta1().Ingresses(*watchNamespace).List(metav1.ListOptions{Limit: 1})
if err != nil {
glog.Fatalf("no watchNamespace with name %v found: %v", *watchNamespace, err)
}
Expand Down

0 comments on commit 0de7eb0

Please sign in to comment.