Migrate addons to new update-lib

This commit is contained in:
Stefan Reimer 2023-08-20 15:38:51 +00:00
parent 004c53d8a5
commit 14e00f09f4
4 changed files with 5 additions and 17 deletions

View File

@ -39,11 +39,11 @@ dependencies:
condition: sealed-secrets.enabled
- name: aws-node-termination-handler
version: 0.21.0
# repository: https://aws.github.io/eks-charts
repository: https://aws.github.io/eks-charts
condition: aws-node-termination-handler.enabled
- name: aws-eks-asg-rolling-update-handler
version: 1.3.0
# repository: https://twin.github.io/helm-charts
repository: https://twin.github.io/helm-charts
condition: aws-eks-asg-rolling-update-handler.enabled
- name: falco
version: 3.3.0

View File

@ -1,19 +1,7 @@
#!/bin/bash
set -ex
helm repo update
. ../../scripts/lib-update.sh
NTH_VERSION=$(yq eval '.dependencies[] | select(.name=="aws-node-termination-handler") | .version' Chart.yaml)
RUH_VERSION=$(yq eval '.dependencies[] | select(.name=="aws-eks-asg-rolling-update-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
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
helm dep update
patch_chart aws-node-termination-handler
patch_chart aws-eks-asg-rolling-update-handler