Skip to content

Commit

Permalink
Merge pull request #1161 from marquiz/fixes/prune-no-publish
Browse files Browse the repository at this point in the history
nfd-master: support noPublish with -prune
  • Loading branch information
k8s-ci-robot authored Apr 19, 2023
2 parents 3225743 + 32db081 commit 5d9907a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/nfd-master/nfd-master.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ func (m *nfdMaster) WaitForReady(timeout time.Duration) bool {

// Prune erases all NFD related properties from the node objects of the cluster.
func (m *nfdMaster) prune() error {
if m.config.NoPublish {
klog.Info("skipping pruning of nodes as noPublish config option is set")
return nil
}

cli, err := m.apihelper.GetClient()
if err != nil {
return err
Expand Down

0 comments on commit 5d9907a

Please sign in to comment.