mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
25 lines
343 B
Bash
Executable file
25 lines
343 B
Bash
Executable file
#!/bin/sh
|
|
|
|
LICENSE=$2
|
|
NS=$1
|
|
|
|
if [ -z $LICENSE ]; then
|
|
echo "No enterprise license set"
|
|
exit 0
|
|
fi
|
|
|
|
if [ -z $NS ]; then
|
|
echo "Specify a namespace argument"
|
|
exit 1
|
|
fi
|
|
|
|
kubectl apply -f - <<EOF
|
|
apiVersion: v1
|
|
data:
|
|
token: ${LICENSE}
|
|
kind: Secret
|
|
metadata:
|
|
name: arangodb-jenkins-license-key
|
|
namespace: ${NS}
|
|
type: Opaque
|
|
EOF
|