From 3e7eea044c1005085808b3bc907e8b659bac8a40 Mon Sep 17 00:00:00 2001 From: Dave Try Date: Fri, 16 Jul 2021 14:52:58 -0500 Subject: [PATCH] create namespace --- .buildkite/integration-test.sh | 2 -- tests/integration/fresh/step1/index.ts | 11 ++++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.buildkite/integration-test.sh b/.buildkite/integration-test.sh index efb349b01247..9a0b45527b2a 100755 --- a/.buildkite/integration-test.sh +++ b/.buildkite/integration-test.sh @@ -30,8 +30,6 @@ if [[ "${VERBOSE:-"false"}" == "true" ]]; then TEST_ARGS+=("-v") fi -kubectl create ns ns-sourcegraph - TEST_ARGS+=("./...") echo "--- Running integration tests" diff --git a/tests/integration/fresh/step1/index.ts b/tests/integration/fresh/step1/index.ts index 2057b8058ca6..e983284b3292 100644 --- a/tests/integration/fresh/step1/index.ts +++ b/tests/integration/fresh/step1/index.ts @@ -25,6 +25,15 @@ const storageClass = new k8s.storage.v1.StorageClass( { provider: k8sProvider } ) +const nameSpace = new k8s.v1.nameSpace( + 'sourcegraph-namespace', + { + metadata: { + } + }, + { provider: k8sProvider } +) + const globOptions = { ignore: ['**/kustomization.yaml'], } @@ -39,7 +48,7 @@ baseFiles.then( }, { providers: { kubernetes: k8sProvider }, - dependsOn: [storageClass], + dependsOn: [storageClass,nameSpace], } ) )