1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-04-23 20:57:10 +00:00

Merge pull request from k8s-infra-cherrypick-robot/cherry-pick-1161-to-release-0.13

[release-0.13] nfd-master: support noPublish with -prune
This commit is contained in:
Kubernetes Prow Robot 2023-04-20 00:49:11 -07:00 committed by GitHub
commit b72a409b07
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