From 52df14d6dffc17c6f769f0d2c2df13d7bdc358b9 Mon Sep 17 00:00:00 2001 From: shimritproj Date: Wed, 29 May 2024 20:55:37 +0300 Subject: [PATCH] Check for the recommended security requirements of the container-native operators --- cnf-certification-test/operator/suite.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cnf-certification-test/operator/suite.go b/cnf-certification-test/operator/suite.go index 8dbf84552..707b30125 100644 --- a/cnf-certification-test/operator/suite.go +++ b/cnf-certification-test/operator/suite.go @@ -445,8 +445,8 @@ func findAllPods(env *provider.TestEnvironment, operator *provider.Operator) []* for _, put := range env.AllPods { fmt.Printf("pod: %v", put) for _, ownerRef := range put.ObjectMeta.GetOwnerReferences() { - for i := range operator.Csv.GetAllCRDDescriptions() { - ownerRefOperator := &operator.Csv.GetAllCRDDescriptions()[i] + for i := range operator.Csv.Spec.CustomResourceDefinitions.Owned { + ownerRefOperator := operator.Csv.Spec.CustomResourceDefinitions.Owned[i] if ownerRef.Kind == ownerRefOperator.Kind && ownerRef.Name == ownerRefOperator.Name { AllPods = append(AllPods, put) break