github.com/crossplane-contrib/function-cue@v0.2.2-0.20240508161918-5100fcb5a058/hacking/.env (about) 1 #!/bin/bash 2 3 SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) 4 5 # allow the variables we set by default to be overridden using a .userenv file 6 # This file should not be checked into source code. 7 if [[ -f "${SCRIPT_DIR}/.userenv" ]] 8 then 9 source "${SCRIPT_DIR}/.userenv" 10 fi 11 12 export XP_LOCAL_CONTEXT=${XP_LOCAL_CONTEXT:-kind} # local k8s context name 13 14 export XP_CROSSPLANE_VERSION=${XP_CROSSPLANE_VERSION:-1.14.3} # crossplane system version 15 export XP_CROSSPLANE_NS=${XP_CROSSPLANE_NS:-crossplane-system} # crossplane system namespace 16 17 export XP_PROVIDER_AWS_VERSION=${XP_PROVIDER_AWS_VERSION:-v0.46.0} # crossplane AWS provider version 18 export XP_PROVIDER_AWS_CONFIGURE=${XP_PROVIDER_AWS_CONFIGURE:-true} # whether to configure AWS providers 19 20 export XP_PROVIDER_K8S_VERSION=${XP_PROVIDER_K8S_VERSION:-v0.11.4} # crossplane K8s provider version 21 22 # variables that should be used to run kubectl and helm, pointing to the correct kube context such that 23 # we don't accidentally install stuff in other environments. 24 RUN_KUBECTL="kubectl --context ${XP_LOCAL_CONTEXT}" 25 RUN_HELM="helm --kube-context ${XP_LOCAL_CONTEXT}"