MCPcopy Index your code
hub / github.com/devspace-sh/devspace / ExpectNamespace

Function ExpectNamespace

e2e/framework/helper.go:65–78  ·  view source on GitHub ↗
(namespace string)

Source from the content-addressed store, hash-verified

63}
64
65func ExpectNamespace(namespace string) {
66 kubeClient, err := kube.NewKubeHelper()
67 ExpectNoErrorWithOffset(1, err)
68
69 err = wait.PollUntilContextTimeout(context.TODO(), time.Second, time.Minute*2, true, func(ctx context.Context) (done bool, err error) {
70 ns, err := kubeClient.Client().KubeClient().CoreV1().Namespaces().Get(ctx, namespace, metav1.GetOptions{})
71 if err != nil {
72 return false, nil
73 }
74
75 return ns.Name == namespace, nil
76 })
77 ExpectNoErrorWithOffset(1, err)
78}
79
80func ExpectRemoteFileContents(imageSelector string, namespace string, filePath string, contents string) {
81 kubeClient, err := kube.NewKubeHelper()

Callers 1

dependencies.goFile · 0.92

Calls 5

ClientMethod · 0.95
NewKubeHelperFunction · 0.92
ExpectNoErrorWithOffsetFunction · 0.85
KubeClientMethod · 0.65
GetMethod · 0.45

Tested by

no test coverage detected