mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
nfd-master: correctly clean up annotations
Delete correct annotations if -instance is specified.
This commit is contained in:
parent
7f6fd05357
commit
9ea0a1b420
1 changed files with 3 additions and 1 deletions
|
@ -1065,7 +1065,9 @@ func (m *nfdMaster) updateNodeObject(cli *kubernetes.Clientset, nodeName string,
|
|||
patches := createPatches(oldLabels, node.Labels, labels, "/metadata/labels")
|
||||
patches = append(patches,
|
||||
createPatches(
|
||||
[]string{nfdv1alpha1.FeatureLabelsAnnotation, nfdv1alpha1.ExtendedResourceAnnotation},
|
||||
[]string{
|
||||
m.instanceAnnotation(nfdv1alpha1.FeatureLabelsAnnotation),
|
||||
m.instanceAnnotation(nfdv1alpha1.ExtendedResourceAnnotation)},
|
||||
node.Annotations,
|
||||
annotations,
|
||||
"/metadata/annotations")...)
|
||||
|
|
Loading…
Reference in a new issue