mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Update the Devfile library * Add test for container-overrides and pod-overrides attributes Signed-off-by: Parthvi Vala <pvala@redhat.com> Attempt at fixing CI failures Signed-off-by: Parthvi Vala <pvala@redhat.com> * Fix CI failure * Attempt at fixing OC integration test failures Signed-off-by: Parthvi Vala <pvala@redhat.com> * Use random name in integration test Signed-off-by: Parthvi Vala <pvala@redhat.com> * Rebase and fix integration test failure Signed-off-by: Parthvi Vala <pvala@redhat.com> * Make integration test work for podman Signed-off-by: Parthvi Vala <pvala@redhat.com> * Temp attempt at fixing podman test for GH Signed-off-by: Parthvi Vala <pvala@redhat.com> * Another attempt at fixing CI test for podman Signed-off-by: Parthvi Vala <pvala@redhat.com> * One more attempt at fixing integration test for podman Signed-off-by: Parthvi Vala <pvala@redhat.com> Signed-off-by: Parthvi Vala <pvala@redhat.com>
22 lines
594 B
Go
22 lines
594 B
Go
package helper
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
|
|
dfutil "github.com/devfile/library/v2/pkg/util"
|
|
)
|
|
|
|
// copyKubeConfigFile copies default kubeconfig file into current temporary context config file
|
|
func copyKubeConfigFile(kubeConfigFile, tempConfigFile string) {
|
|
info, err := os.Stat(kubeConfigFile)
|
|
Expect(err).NotTo(HaveOccurred())
|
|
err = dfutil.CopyFile(kubeConfigFile, tempConfigFile, info)
|
|
Expect(err).NotTo(HaveOccurred())
|
|
os.Setenv("KUBECONFIG", tempConfigFile)
|
|
fmt.Fprintf(GinkgoWriter, "Setting KUBECONFIG=%s\n", tempConfigFile)
|
|
}
|