Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ require (
github.com/opencontainers/cgroups v0.0.3
github.com/opencontainers/runc v1.2.5
github.com/opencontainers/selinux v1.11.1
github.com/openshift-eng/openshift-tests-extension v0.0.0-20250916161632-d81c09058835
github.com/openshift-eng/openshift-tests-extension v0.0.0-20251104171704-4de6984a8e50
github.com/openshift/api v0.0.0-20251015095338-264e80a2b6e7
github.com/openshift/apiserver-library-go v0.0.0-20251015164739-79d04067059d
github.com/openshift/client-go v0.0.0-20251015124057-db0dee36e235
Expand Down
82 changes: 2 additions & 80 deletions go.sum

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions openshift-hack/cmd/k8s-tests-ext/k8s-tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,16 @@ func main() {
Qualifiers: []string{withExcludedTestsFilter(`name.contains('[Serial]')`)},
})

for k, v := range image.GetOriginalImageConfigs() {
image := convertToImage(v)
image.Index = int(k)
mirror := "quay.io/openshift/community-e2e-images"
if v := os.Getenv("TEST_IMAGE_MIRROR"); len(v) > 0 {
mirror = v
}
originals := image.GetOriginalImageConfigs()
mapped := image.GetMappedImageConfigs(originals, mirror)
for k, v := range originals {
image := convertToImage(v, int(k))
mappedImage := convertToImage(mapped[k], int(k))
image.Mapped = &mappedImage
kubeTestsExtension.RegisterImage(image)
}

Expand Down Expand Up @@ -158,10 +165,10 @@ func main() {
}
}

// convertToImages converts an image.Config to an extension.Image, which
// convertToImage converts an image.Config to an extension.Image, which
// can easily be serialized to JSON. Since image.Config has unexported fields,
// reflection is used to read its values.
func convertToImage(obj interface{}) e.Image {
func convertToImage(obj interface{}, index int) e.Image {
image := e.Image{}
val := reflect.ValueOf(obj)
typ := reflect.TypeOf(obj)
Expand All @@ -177,6 +184,7 @@ func convertToImage(obj interface{}) e.Image {
image.Version = fieldValue.String()
}
}
image.Index = index
return image
}

Expand Down
9 changes: 0 additions & 9 deletions vendor/OWNERS

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ github.com/opencontainers/runtime-spec/specs-go
github.com/opencontainers/selinux/go-selinux
github.com/opencontainers/selinux/go-selinux/label
github.com/opencontainers/selinux/pkg/pwalkdir
# github.com/openshift-eng/openshift-tests-extension v0.0.0-20250916161632-d81c09058835
# github.com/openshift-eng/openshift-tests-extension v0.0.0-20251104171704-4de6984a8e50
## explicit; go 1.23.0
github.com/openshift-eng/openshift-tests-extension/pkg/cmd
github.com/openshift-eng/openshift-tests-extension/pkg/cmd/cmdimages
Expand Down