1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-14 20:56:42 +00:00

Merge pull request #1161 from marquiz/fixes/prune-no-publish

nfd-master: support noPublish with -prune
This commit is contained in:
Kubernetes Prow Robot 2023-04-19 10:01:11 -07:00 committed by GitHub
commit 5d9907ae86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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