Skip to content

Commit

Permalink
Merge pull request #1554 from marquiz/devel/topology-updater-no-publish
Browse files Browse the repository at this point in the history
topology-updater: initialize properly with -no-publish
  • Loading branch information
k8s-ci-robot authored Jan 22, 2024
2 parents d80e4f7 + b452ab6 commit 9be4f04
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkg/nfd-topology-updater/nfd-topology-updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,12 @@ func (w *nfdTopologyUpdater) Run() error {
return fmt.Errorf("failed to get PodResource Client: %w", err)
}

if !w.args.NoPublish {
kubeconfig, err := apihelper.GetKubeconfig(w.args.KubeConfigFile)
if err != nil {
return err
}
w.apihelper = apihelper.K8sHelpers{Kubeconfig: kubeconfig}
kubeconfig, err := apihelper.GetKubeconfig(w.args.KubeConfigFile)
if err != nil {
return err
}
w.apihelper = apihelper.K8sHelpers{Kubeconfig: kubeconfig}

if err := w.configure(); err != nil {
return fmt.Errorf("faild to configure Node Feature Discovery Topology Updater: %w", err)
}
Expand Down

0 comments on commit 9be4f04

Please sign in to comment.