Skip to content

Commit

Permalink
Check for the recommended security requirements of the container-nati…
Browse files Browse the repository at this point in the history
…ve operators
  • Loading branch information
shimritproj committed May 29, 2024
1 parent 6c1e7c1 commit 52df14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cnf-certification-test/operator/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52df14d

Please sign in to comment.