skip openshift-marketplace namespace when checking that images come
from the release
openshift-marketplace intentionally pulls images from outside of the
release
@@ -92,12 +92,16 @@ var _ = Describe("[sig-arch] Managed cluster", func() {
// a pod in a namespace that begins with kube-* or openshift-* must come from our release payload
// TODO components in openshift-operators may not come from our payload, may want to weaken restriction
namespacePrefixes := sets.NewString("kube-", "openshift-")
+ ignoredNamespaces := sets.NewString("openshift-marketplace")
for i := range pods.Items {
pod := pods.Items[i]
for _, prefix := range namespacePrefixes.List() {
if !strings.HasPrefix(pod.Namespace, prefix) {
continue
}
+ if ignoredNamespaces.Has(pod.Namespace) {
+ continue
+ }
containersToInspect := []v1.Container{}
for j := range pod.Spec.InitContainers {
if skipPodContainersNames.Has(pod.Spec.InitContainers[j].Name) {
