Skip to content

Commit 7c0913e

Browse files
authored
Merge pull request #1393 from marquiz/devel/annotations-fix
nfd-master: correctly clean up annotations
2 parents 7f6fd05 + 9ea0a1b commit 7c0913e

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)