Skip to content

Commit 23383b6

Browse files
author
lamai93
committed
Made the secret deployment namespace aware.
1 parent f093a2c commit 23383b6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ endif
310310
kubectl apply -f $(MANIFESTPATHDEPLOYMENTREPLICATION)
311311
kubectl apply -f $(MANIFESTPATHTEST)
312312
$(ROOTDIR)/scripts/kube_create_storage.sh $(DEPLOYMENTNAMESPACE)
313-
$(ROOTDIR)/scripts/kube_create_license_key_secret.sh
313+
$(ROOTDIR)/scripts/kube_create_license_key_secret.sh "$(DEPLOYMENTNAMESPACE)"
314314
$(ROOTDIR)/scripts/kube_run_tests.sh $(DEPLOYMENTNAMESPACE) $(TESTIMAGE) "$(ARANGODIMAGE)" "$(ENTERPRISEIMAGE)" $(TESTTIMEOUT) $(TESTLENGTHOPTIONS)
315315

316316
$(DURATIONTESTBIN): $(GOBUILDDIR) $(SOURCES)

scripts/kube_create_license_key_secret.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ if [ -z $ENTERPRISELICENSE ]; then
55
fi
66

77
LICENSE=$(echo "${ENTERPRISELICENSE}" | base64 )
8+
NS=$1
9+
10+
if [ -z $NS ]; then
11+
echo "Specify a namespace argument"
12+
exit 1
13+
fi
814

915
kubectl apply -f - <<EOF
1016
apiVersion: v1
@@ -13,6 +19,6 @@ data:
1319
kind: Secret
1420
metadata:
1521
name: arangodb-jenkins-license-key
16-
namespace: default
22+
namespace: ${NS}
1723
type: Opaque
1824
EOF

0 commit comments

Comments
 (0)