Skip to content

Commit

Permalink
Merge pull request #636 from zeeke/taming-e2e-multus-debug-log
Browse files Browse the repository at this point in the history
e2e: Dump multus namespace on failures
  • Loading branch information
zeeke committed Feb 20, 2024
2 parents 51c59b6 + 82d0c28 commit d8459ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/util/k8sreporter/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func New(reportPath string) (*kniK8sReporter.KubernetesReporter, error) {
operatorNamespace = "openshift-sriov-network-operator"
}

multusNamespace := os.Getenv("MULTUS_NAMESPACE")

dumpNamespace := func(ns string) bool {
switch {
case ns == namespaces.Test:
Expand All @@ -34,6 +36,8 @@ func New(reportPath string) (*kniK8sReporter.KubernetesReporter, error) {
return true
case strings.HasPrefix(ns, "sriov-"):
return true
case multusNamespace != "" && ns == multusNamespace:
return true
}
return false
}
Expand Down

0 comments on commit d8459ee

Please sign in to comment.