Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Mar 10, 2021
1 parent 51df493 commit 74961d7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/deploy/kubernetes_image_puller.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,11 @@ func CheckNeededImagePullerApis(ctx *DeployContext) (bool, bool, bool, error) {
}
}

for _, r := range resourcesList {
if r.Kind == "KubernetesImagePuller" {
foundKubernetesImagePullerAPI = true
for _, l := range resourcesList {
for _, r := range l.APIResources {
if r.Kind == "KubernetesImagePuller" {
foundKubernetesImagePullerAPI = true
}
}
}
return foundPackagesAPI, foundOperatorsAPI, foundKubernetesImagePullerAPI, nil
Expand Down

0 comments on commit 74961d7

Please sign in to comment.