1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Made the secret deployment namespace aware.

This commit is contained in:
lamai93 2018-12-03 14:49:06 +01:00
parent f093a2c88b
commit 23383b67bb
2 changed files with 8 additions and 2 deletions

View file

@ -310,7 +310,7 @@ endif
kubectl apply -f $(MANIFESTPATHDEPLOYMENTREPLICATION)
kubectl apply -f $(MANIFESTPATHTEST)
$(ROOTDIR)/scripts/kube_create_storage.sh $(DEPLOYMENTNAMESPACE)
$(ROOTDIR)/scripts/kube_create_license_key_secret.sh
$(ROOTDIR)/scripts/kube_create_license_key_secret.sh "$(DEPLOYMENTNAMESPACE)"
$(ROOTDIR)/scripts/kube_run_tests.sh $(DEPLOYMENTNAMESPACE) $(TESTIMAGE) "$(ARANGODIMAGE)" "$(ENTERPRISEIMAGE)" $(TESTTIMEOUT) $(TESTLENGTHOPTIONS)
$(DURATIONTESTBIN): $(GOBUILDDIR) $(SOURCES)

View file

@ -5,6 +5,12 @@ if [ -z $ENTERPRISELICENSE ]; then
fi
LICENSE=$(echo "${ENTERPRISELICENSE}" | base64 )
NS=$1
if [ -z $NS ]; then
echo "Specify a namespace argument"
exit 1
fi
kubectl apply -f - <<EOF
apiVersion: v1
@ -13,6 +19,6 @@ data:
kind: Secret
metadata:
name: arangodb-jenkins-license-key
namespace: default
namespace: ${NS}
type: Opaque
EOF