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