Allow different namespaces in CI for fission-function and fission-builder (#2609)

* Add variables for function/builder namespace in the test
* Allow different namespaces in integration tests

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Shubham Bansal
2022-11-11 18:56:20 +05:30
committed by GitHub
co-authored by Sanket Sudake
parent fa037166e1
commit 57d3a80fc6
5 changed files with 8 additions and 3 deletions
+1
View File
@@ -15,6 +15,7 @@ echo "source test_utils done"
dump_system_info
export FUNCTION_NAMESPACE=fission-function
export BUILDER_NAMESPACE=fission-builder
export FISSION_NAMESPACE=fission
export FISSION_ROUTER=127.0.0.1:8888
export NODE_RUNTIME_IMAGE=fission/node-env-14
+1 -1
View File
@@ -14,7 +14,7 @@ mkdir -p $tmp_dir
ENV=python-${TEST_ID}
RESOURCE_NS=default # Change to test-specific namespace once we support namespaced CRDs
FUNCTION_NS=${FUNCTION_NAMESPACE:-fission-function}
BUILDER_NS=fission-builder
BUILDER_NS=${BUILDER_NAMESPACE:-fission-builder}
LIST_ANNOTATIONS=go-template='{{range $key,$value := .metadata.annotations}}{{$key}}: {{$value}}{{"\n"}}{{end}}'
# fs
+1 -1
View File
@@ -16,7 +16,7 @@ ENV=python-${TEST_ID}
FN=foo-${TEST_ID}
RESOURCE_NS=default # Change to test-specific namespace once we support namespaced CRDs
FUNCTION_NS=${FUNCTION_NAMESPACE:-fission-function}
BUILDER_NS=fission-builder
BUILDER_NS=${BUILDER_NAMESPACE:-fission-builder}
# fs
ENV_SPEC_FILE=${tmp_dir}/${ENV}.yaml
+1 -1
View File
@@ -161,7 +161,7 @@ wait_for_builder() {
# wait for tiller ready
set +e
while true; do
kubectl --namespace fission-builder get pod -l envName=$env -o jsonpath="$JSONPATH" | grep "Ready=True"
kubectl --namespace $BUILDER_NAMESPACE get pod -l envName=$env -o jsonpath="$JSONPATH" | grep "Ready=True"
if [[ $? -eq 0 ]]; then
break
fi