mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-15 17:51:03 +00:00
26 lines
No EOL
952 B
Bash
Executable file
26 lines
No EOL
952 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Run kubectl run to run the integration tests.
|
|
|
|
DEPLOYMENTNAMESPACE=$1
|
|
ARANGODIMAGE=$2
|
|
ARANGOSYNCIMAGE=$3
|
|
ARANOSYNCTESTIMAGE=$4
|
|
ARANOSYNCTESTCTRLIMAGE=$5
|
|
TESTARGS=$6
|
|
|
|
ARANGOSYNCIMAGEID=$(docker inspect ${ARANGOSYNCIMAGE} '--format={{index .RepoDigests 0}}')
|
|
ARANOSYNCTESTIMAGEID=$(docker inspect ${ARANOSYNCTESTIMAGE} '--format={{index .RepoDigests 0}}')
|
|
ARANOSYNCTESTCTRLIMAGEID=$(docker inspect ${ARANOSYNCTESTCTRLIMAGE} '--format={{index .RepoDigests 0}}')
|
|
|
|
kubectl --namespace ${DEPLOYMENTNAMESPACE} \
|
|
run kube-arangosync-test-controller -i --rm --quiet --restart=Never \
|
|
--image=${ARANOSYNCTESTCTRLIMAGEID} \
|
|
-- \
|
|
--arango-image=${ARANGODIMAGE} \
|
|
--arango-sync-image=${ARANGOSYNCIMAGEID} \
|
|
--arango-sync-test-image=${ARANOSYNCTESTIMAGEID} \
|
|
--license-key-secret-name=arangodb-jenkins-license-key \
|
|
--namespace=${DEPLOYMENTNAMESPACE} \
|
|
--serviceaccount=arangodb-test \
|
|
--test-args="${TESTARGS}" |