mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-13 20:30:03 +00:00
Merge pull request #1161 from marquiz/fixes/prune-no-publish
nfd-master: support noPublish with -prune
This commit is contained in:
commit
5d9907ae86
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue