From 4c5443a2dbda0e0e3bc1c231fc49cea58a280293 Mon Sep 17 00:00:00 2001 From: shimritproj Date: Mon, 20 May 2024 20:56:37 +0300 Subject: [PATCH] Check for the recommended security requirements of the container-native operators --- cnf-certification-test/operator/suite_test.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cnf-certification-test/operator/suite_test.go b/cnf-certification-test/operator/suite_test.go index de19eea9b..7217b0ebe 100644 --- a/cnf-certification-test/operator/suite_test.go +++ b/cnf-certification-test/operator/suite_test.go @@ -52,11 +52,13 @@ func TestFindAllPods(t *testing.T) { }, operator: &provider.Operator{ Csv: &olmv1Alpha.ClusterServiceVersion{ - ObjectMeta: metav1.ObjectMeta{ - OwnerReferences: []metav1.OwnerReference{ - { - Kind: "Pod", - Name: "nginx-pod", + Spec: olmv1Alpha.ClusterServiceVersionSpec{ + CustomResourceDefinitions: olmv1Alpha.CustomResourceDefinitions{ + Owned: []olmv1Alpha.CRDDescription{ + { + Kind: "Pod", + Name: "nginx-pod", + }, }, }, },