Skip to content

Commit

Permalink
fix: Set bash pipefail as first line (#123)
Browse files Browse the repository at this point in the history
Signed-off-by: Heba <31887807+helayoty@users.noreply.github.com>
  • Loading branch information
helayoty authored May 3, 2024
1 parent 4272b4f commit b40a1c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/deploy/configure-helm-values.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://github.com/Azure/karpenter-provider-azure/blob/2beb773cbd3134eeabb8c96b72a130b86b1a91e1/hack/deploy/configure-values.sh

#!/usr/bin/env bash
set -euo pipefail

# https://github.com/Azure/karpenter-provider-azure/blob/2beb773cbd3134eeabb8c96b72a130b86b1a91e1/hack/deploy/configure-values.sh

# This script interrogates the AKS cluster and Azure resources to generate
# the gpu-provisioner-values.yaml file using the gpu-provisioner-values-template.yaml file as a template.

Expand Down Expand Up @@ -31,4 +31,4 @@ export CLUSTER_NAME AZURE_LOCATION AZURE_RESOURCE_GROUP_MC GPU_PROVISIONER_USER_
if [ ! -f gpu-provisioner-values-template.yaml ]; then
curl -sO https://raw.githubusercontent.com/Azure/gpu-provisioner/main/gpu-provisioner-values-template.yaml
fi
yq '(.. | select(tag == "!!str")) |= envsubst(nu)' gpu-provisioner-values-template.yaml > gpu-provisioner-values.yaml
yq '(.. | select(tag == "!!str")) |= envsubst(nu)' gpu-provisioner-values-template.yaml > gpu-provisioner-values.yaml

0 comments on commit b40a1c0

Please sign in to comment.