2021-12-01 15:43:42 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
2022-06-01 08:11:31 +00:00
|
|
|
helm repo update
|
|
|
|
|
2021-12-01 15:43:42 +00:00
|
|
|
NTH_VERSION=$(yq eval '.dependencies[] | select(.name=="aws-node-termination-handler") | .version' Chart.yaml)
|
2023-01-11 12:08:18 +00:00
|
|
|
RUH_VERSION=$(yq eval '.dependencies[] | select(.name=="aws-eks-asg-rolling-update-handler") | .version' Chart.yaml)
|
2021-12-01 15:43:42 +00:00
|
|
|
|
2022-04-08 15:10:17 +00:00
|
|
|
rm -rf charts/aws-node-termination-handler
|
|
|
|
helm pull eks/aws-node-termination-handler --untar --untardir charts --version $NTH_VERSION
|
2021-12-01 15:43:42 +00:00
|
|
|
|
|
|
|
# diff -tuNr charts/aws-node-termination-handler.orig charts/aws-node-termination-handler > nth.patch
|
|
|
|
patch -p0 -i nth.patch --no-backup-if-mismatch
|
2022-05-18 22:27:10 +00:00
|
|
|
|
2023-01-11 12:08:18 +00:00
|
|
|
rm -rf charts/aws-eks-asg-rolling-update-handler
|
|
|
|
helm pull twin/aws-eks-asg-rolling-update-handler --untar --untardir charts --version $RUH_VERSION
|
|
|
|
patch -p0 -i ruh.patch --no-backup-if-mismatch
|
|
|
|
|
2022-05-18 22:27:10 +00:00
|
|
|
helm dep update
|