14 lines
436 B
Bash
Executable File
14 lines
436 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
NTH_VERSION=$(yq eval '.dependencies[] | select(.name=="aws-node-termination-handler") | .version' Chart.yaml)
|
|
|
|
rm -rf charts/aws-node-termination-handler
|
|
helm pull eks/aws-node-termination-handler --untar --untardir charts --version $NTH_VERSION
|
|
|
|
# diff -tuNr charts/aws-node-termination-handler.orig charts/aws-node-termination-handler > nth.patch
|
|
patch -p0 -i nth.patch --no-backup-if-mismatch
|
|
|
|
helm dep update
|
|
|