Skip to content

Commit

Permalink
Merge pull request #29 from wozniakjan/assert_cache_namespace_matchin…
Browse files Browse the repository at this point in the history
…g_cluster_name

Use the same namespace for kubelb cache and direct client calls
  • Loading branch information
ahmedwaleedmalik authored Sep 5, 2023
2 parents a5fe5c5 + 4989148 commit c7451f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/ccm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,14 @@ func main() {
os.Exit(1)
}

kubeLBNamespace, _, _ := kubeLBClientConfig.Namespace()
kubeLBMgr, err := ctrl.NewManager(kubeLBRestConfig, ctrl.Options{
Scheme: scheme,
Namespace: kubeLBNamespace,
Namespace: clusterName,
})
if err != nil {
setupLog.Error(err, "failed to create manager for kubelb cluster")
os.Exit(1)
}

mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
Expand Down

0 comments on commit c7451f1

Please sign in to comment.