Skip to content

Commit

Permalink
Move cluster-autoscaler update-chart-version-readme script to /hack
Browse files Browse the repository at this point in the history
  • Loading branch information
mewa committed Mar 26, 2024
1 parent c6f1d2b commit 89595cb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ VERSIONS=$(
(
set -eo pipefail
cat $BASE/../charts/cluster-autoscaler/Chart.yaml \
cat $BASE/../../charts/cluster-autoscaler/Chart.yaml \
| grep -e version -e appVersion
) \
| sed -E -e 's/^([^:]+): (.*)/"\1": "\2"/g' \
Expand All @@ -54,6 +54,6 @@ cleanup
awk "!/^\|/ { versions=0 }
/$CA_VERSION/ { if (versions) print(\"\", \$2, \$3, \"$MIN_COMPATIBLE_VERSION+\" \"\", \"\"); else print(\$0) }
!/$CA_VERSION/ { print }
/Kubernetes Version/ { versions=1; FS=\"|\"; OFS=\"|\"; }" $BASE/README.md > README.md.tmp
/Kubernetes Version/ { versions=1; FS=\"|\"; OFS=\"|\"; }" $BASE/../README.md > README.md.tmp

mv README.md.tmp $BASE/README.md
mv README.md.tmp $BASE/../README.md

0 comments on commit 89595cb

Please sign in to comment.