Something went wrong on our end
-
David Hoese authoredDavid Hoese authored
common.sh 529 B
export K8S_CLUSTER_NAME=${K8S_CLUSTER_NAME:-gamma}
export K8S_API_URL=${K8S_API_URL:-https://gamma.ssec.wisc.edu:6443}
export K8S_NAMESPACE=${K8S_NAMESPACE:-volcat-test}
export K8S_SA_NAME=${K8S_SA_NAME:-sa-volcat-ci}
export K8S_REGISTRY_SECRET=${K8S_REGISTRY_SECRET:-gitlab-registry}
kubectl_envsubst() {
local command="$1"
local template="$2"
if [ -z "$DRY_RUN" ]; then
envsubst <${template} |kubectl -n ${K8S_NAMESPACE} ${command} -f -
else
echo "---"
echo "# $template"
envsubst <${template}
fi
}