@@ -807,19 +807,22 @@ core:
807
807
Expect (testutils .CreateNodeFeatureRulesFromFile (ctx , nfdClient , "nodefeaturerule-5.yaml" )).NotTo (HaveOccurred ())
808
808
809
809
By ("Verifying node annotations from NodeFeatureRules #5" )
810
- expectedAnnotations ["*" ] = k8sAnnotations {
811
- nfdv1alpha1 .FeatureLabelNs + "/defaul-ns-annotation" : "foo" ,
812
- nfdv1alpha1 . FeatureLabelNs + "/defaul-ns-annotation-2" : "bar" ,
813
- " custom.vendor.example /feature" : "baz" ,
814
- }
810
+ expectedAnnotations ["*" ][ nfdv1alpha1 . FeatureAnnotationNs + "/defaul-ns-annotation" ] = "foo"
811
+ expectedAnnotations [ "*" ][ nfdv1alpha1 .FeatureAnnotationNs + "/defaul-ns-annotation-2" ] = "bar"
812
+ expectedAnnotations [ "*" ][ "custom.vendor.io/feature" ] = "baz"
813
+ expectedAnnotations [ "*" ][ nfdv1alpha1 . FeatureAnnotationsTrackingAnnotation ] = " custom.vendor.io /feature,defaul-ns-annotation,defaul-ns-annotation-2"
814
+
815
815
eventuallyNonControlPlaneNodes (ctx , f .ClientSet ).Should (MatchAnnotations (expectedAnnotations , nodes ))
816
816
817
817
By ("Deleting NodeFeatureRule object" )
818
- err = nfdClient .NfdV1alpha1 ().NodeFeatureRules ().Delete (ctx , " e2e-feature-annotations-test" , metav1.DeleteOptions {})
818
+ err = nfdClient .NfdV1alpha1 ().NodeFeatureRules ().Delete (ctx , "e2e-feature-annotations-test" , metav1.DeleteOptions {})
819
819
Expect (err ).NotTo (HaveOccurred ())
820
820
821
821
By ("Verifying node annotations from NodeFeatureRules #5 are deleted" )
822
- expectedAnnotations ["*" ] = k8sAnnotations {}
822
+ delete (expectedAnnotations ["*" ], nfdv1alpha1 .FeatureAnnotationNs + "/defaul-ns-annotation" )
823
+ delete (expectedAnnotations ["*" ], nfdv1alpha1 .FeatureAnnotationNs + "/defaul-ns-annotation-2" )
824
+ delete (expectedAnnotations ["*" ], "custom.vendor.io/feature" )
825
+ delete (expectedAnnotations ["*" ], nfdv1alpha1 .FeatureAnnotationsTrackingAnnotation )
823
826
eventuallyNonControlPlaneNodes (ctx , f .ClientSet ).Should (MatchAnnotations (expectedAnnotations , nodes ))
824
827
825
828
By ("Deleting nfd-worker daemonset" )
0 commit comments