mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
19 lines
319 B
Bash
Executable file
19 lines
319 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z $ENTERPRISELICENSE ]; then
|
|
echo "Please specify ENTERPRISELICENSE"
|
|
exit 1
|
|
fi
|
|
|
|
LICENSE=$(echo "${ENTERPRISELICENSE}" | base64 )
|
|
|
|
kubectl apply -f - <<EOF
|
|
apiVersion: v1
|
|
data:
|
|
token: ${LICENSE}
|
|
kind: Secret
|
|
metadata:
|
|
name: arangodb-jenkins-license-key
|
|
namespace: default
|
|
type: Opaque
|
|
EOF
|