diff --git a/Makefile b/Makefile index f3b89a217..25d6ede52 100644 --- a/Makefile +++ b/Makefile @@ -169,6 +169,10 @@ get-cluster-credentials: set-azure-account az aks get-credentials --overwrite-existing -g ${CLUSTER_RESOURCE_GROUP_NAME} -n ${CLUSTER_NAME} kubelogin convert-kubeconfig -l $(if ${GITHUB_ACTIONS},spn,azurecli) -bin/konduit.sh: - curl -s https://raw.githubusercontent.com/DFE-Digital/teacher-services-cloud/main/scripts/konduit.sh -o bin/konduit.sh \ - && chmod +x bin/konduit.sh + +.PHONY: install-konduit +install-konduit: ## Install the konduit script, for accessing backend services + [ ! -f bin/konduit.sh ] \ + && curl -s https://raw.githubusercontent.com/DFE-Digital/teacher-services-cloud/master/scripts/konduit.sh -o bin/konduit.sh \ + && chmod +x bin/konduit.sh \ + || true