Skip to content

Commit 9ea0a1b

Browse files
committed
nfd-master: correctly clean up annotations
Delete correct annotations if -instance is specified.
1 parent 7f6fd05 commit 9ea0a1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/nfd-master/nfd-master.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,9 @@ func (m *nfdMaster) updateNodeObject(cli *kubernetes.Clientset, nodeName string,
10651065
patches := createPatches(oldLabels, node.Labels, labels, "/metadata/labels")
10661066
patches = append(patches,
10671067
createPatches(
1068-
[]string{nfdv1alpha1.FeatureLabelsAnnotation, nfdv1alpha1.ExtendedResourceAnnotation},
1068+
[]string{
1069+
m.instanceAnnotation(nfdv1alpha1.FeatureLabelsAnnotation),
1070+
m.instanceAnnotation(nfdv1alpha1.ExtendedResourceAnnotation)},
10691071
node.Annotations,
10701072
annotations,
10711073
"/metadata/annotations")...)

0 commit comments

Comments
 (0)