2017-01-13 10:07:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-01-16 02:00:29 +00:00
|
|
|
if [ -z ${PLUGIN_NAMESPACE} ]; then
|
|
|
|
PLUGIN_NAMESPACE="default"
|
|
|
|
fi
|
|
|
|
|
2017-01-13 10:07:48 +00:00
|
|
|
kubectl config set-credentials default --token=${KUBERNETES_TOKEN}
|
|
|
|
kubectl config set-cluster default --server=${KUBERNETES_SERVER} --insecure-skip-tls-verify=true
|
|
|
|
kubectl config set-context default --cluster=default --user=default
|
|
|
|
kubectl config use-context default
|
2017-01-16 02:00:29 +00:00
|
|
|
kubectl -n ${PLUGIN_NAMESPACE} set image deployment/${PLUGIN_DEPLOYMENT} ${PLUGIN_NAME}=${PLUGIN_REPO}:${PLUGIN_TAG}
|