Skip to content

Commit

Permalink
Update helm to 3.6.3 stable version and fix template name. (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
haouc authored Aug 26, 2021
1 parent 3f74181 commit f8d5eed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/generate-cni-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"

PLATFORM=$(uname | tr '[:upper:]' '[:lower:]')
HELM_VERSION="3.0.2"
HELM_VERSION="3.6.3"
NAMESPACE="kube-system"

MAKEFILEPATH=$SCRIPTPATH/../Makefile
Expand Down Expand Up @@ -70,7 +70,7 @@ jq -c '.[]' $REGIONS_FILE | while read i; do
NEW_METRICS_RESOURCES_YAML="${METRICS_RESOURCES_YAML}-${ecrRegion}.yaml"
fi

$BUILD_DIR/helm template charts/aws-vpc-cni \
$BUILD_DIR/helm template aws-vpc-cni \
--set originalMatchLabels=true,\
--set init.image.region=$ecrRegion,\
--set init.image.account=$ecrAccount,\
Expand All @@ -83,7 +83,7 @@ jq -c '.[]' $REGIONS_FILE | while read i; do
cat $NEW_CNI_RESOURCES_YAML | grep -v 'helm.sh\|app.kubernetes.io/managed-by: Helm' > $BUILD_DIR/helm_annotations_removed.yaml
mv $BUILD_DIR/helm_annotations_removed.yaml $NEW_CNI_RESOURCES_YAML

$BUILD_DIR/helm template charts/cni-metrics-helper \
$BUILD_DIR/helm template cni-metrics-helper \
--set image.region=$ecrRegion,\
--set image.account=$ecrAccount,\
--set image.domain=$ecrDomain \
Expand Down

0 comments on commit f8d5eed

Please sign in to comment.