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:
co-authored by
Sanket Sudake
parent
fa037166e1
commit
57d3a80fc6
@@ -113,6 +113,7 @@ jobs:
|
|||||||
kubectl port-forward svc/controller 8889:80 -nfission &
|
kubectl port-forward svc/controller 8889:80 -nfission &
|
||||||
|
|
||||||
- name: Get fission version
|
- name: Get fission version
|
||||||
|
timeout-minutes: 10
|
||||||
run: |
|
run: |
|
||||||
fission version
|
fission version
|
||||||
|
|
||||||
@@ -127,11 +128,13 @@ jobs:
|
|||||||
command -v fission && fission support dump
|
command -v fission && fission support dump
|
||||||
|
|
||||||
- name: Kind export logs
|
- name: Kind export logs
|
||||||
|
timeout-minutes: 10
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: |
|
run: |
|
||||||
kind export logs --name kind kind-logs
|
kind export logs --name kind kind-logs
|
||||||
|
|
||||||
- name: Archive fission dump
|
- name: Archive fission dump
|
||||||
|
timeout-minutes: 10
|
||||||
if: ${{ failure() || cancelled() }}
|
if: ${{ failure() || cancelled() }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
@@ -140,6 +143,7 @@ jobs:
|
|||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
- name: Archive kind logs
|
- name: Archive kind logs
|
||||||
|
timeout-minutes: 10
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ echo "source test_utils done"
|
|||||||
dump_system_info
|
dump_system_info
|
||||||
|
|
||||||
export FUNCTION_NAMESPACE=fission-function
|
export FUNCTION_NAMESPACE=fission-function
|
||||||
|
export BUILDER_NAMESPACE=fission-builder
|
||||||
export FISSION_NAMESPACE=fission
|
export FISSION_NAMESPACE=fission
|
||||||
export FISSION_ROUTER=127.0.0.1:8888
|
export FISSION_ROUTER=127.0.0.1:8888
|
||||||
export NODE_RUNTIME_IMAGE=fission/node-env-14
|
export NODE_RUNTIME_IMAGE=fission/node-env-14
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ mkdir -p $tmp_dir
|
|||||||
ENV=python-${TEST_ID}
|
ENV=python-${TEST_ID}
|
||||||
RESOURCE_NS=default # Change to test-specific namespace once we support namespaced CRDs
|
RESOURCE_NS=default # Change to test-specific namespace once we support namespaced CRDs
|
||||||
FUNCTION_NS=${FUNCTION_NAMESPACE:-fission-function}
|
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}}'
|
LIST_ANNOTATIONS=go-template='{{range $key,$value := .metadata.annotations}}{{$key}}: {{$value}}{{"\n"}}{{end}}'
|
||||||
|
|
||||||
# fs
|
# fs
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ ENV=python-${TEST_ID}
|
|||||||
FN=foo-${TEST_ID}
|
FN=foo-${TEST_ID}
|
||||||
RESOURCE_NS=default # Change to test-specific namespace once we support namespaced CRDs
|
RESOURCE_NS=default # Change to test-specific namespace once we support namespaced CRDs
|
||||||
FUNCTION_NS=${FUNCTION_NAMESPACE:-fission-function}
|
FUNCTION_NS=${FUNCTION_NAMESPACE:-fission-function}
|
||||||
BUILDER_NS=fission-builder
|
BUILDER_NS=${BUILDER_NAMESPACE:-fission-builder}
|
||||||
|
|
||||||
# fs
|
# fs
|
||||||
ENV_SPEC_FILE=${tmp_dir}/${ENV}.yaml
|
ENV_SPEC_FILE=${tmp_dir}/${ENV}.yaml
|
||||||
|
|||||||
+1
-1
@@ -161,7 +161,7 @@ wait_for_builder() {
|
|||||||
# wait for tiller ready
|
# wait for tiller ready
|
||||||
set +e
|
set +e
|
||||||
while true; do
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user