diff --git a/README.md b/README.md index c5958817..5569fe7c 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,13 @@ An always up to date collection of useful tools for your Kubernetes linting and Mount a folder containing your Helm or raw Kubernetes manifests: ```sh -docker run --rm -it -v $PWD:/root/workspace ghcr.io/chgl/kube-powertools:v2.2.0 +docker run --rm -it -v $PWD:/root/workspace ghcr.io/chgl/kube-powertools:v2.2.1 ``` The container image is pushed to these two registries: -- docker.io/chgl/kube-powertools:v2.2.0 -- ghcr.io/chgl/kube-powertools:v2.2.0 +- docker.io/chgl/kube-powertools:v2.2.1 +- ghcr.io/chgl/kube-powertools:v2.2.1 ## Helm Chart Repositories @@ -34,7 +34,7 @@ For example, you can mount this repository into the `kube-powertools` container in the `/samples/charts` dir: ```sh -$ docker run --rm -it -v $PWD:/root/workspace ghcr.io/chgl/kube-powertools:v2.2.0 +$ docker run --rm -it -v $PWD:/root/workspace ghcr.io/chgl/kube-powertools:v2.2.1 bash-5.1# CHARTS_DIR=samples/charts chart-powerlint.sh ``` @@ -107,7 +107,7 @@ First, determine the digest of the container image to verify. This digest is als the packages page on GitHub: . ```sh -IMAGE=ghcr.io/chgl/kube-powertools:v2.2.0 +IMAGE=ghcr.io/chgl/kube-powertools:v2.2.1 IMAGE_DIGEST=$(crane digest $IMAGE) IMAGE_TAG="${IMAGE#*:}" ``` diff --git a/scripts/generate-chart-changelog.sh b/scripts/generate-chart-changelog.sh index 0dfd801d..c808f572 100755 --- a/scripts/generate-chart-changelog.sh +++ b/scripts/generate-chart-changelog.sh @@ -16,7 +16,7 @@ for dir in "$CHARTS_DIR"/*; do # shellcheck disable=SC2002 # using cat makes the code look neater cat "$dir/Chart.yaml" | - yq e '.annotations["artifacthub.io/changes"] // []' - | # extract the changes annotation, which is a YAML array + yq e '.annotations["artifacthub.io/changes"] // []' - | # extract the changes annotation, which is a YAML array yq -o json e '.' - | # convert the YAML array to a JSON array jq 'group_by(.kind) | to_entries | map({key: .value[0].kind, value: .value})' - | # group the JSON array by their 'kind' - ie. the type of change gomplate -d chart="$dir/Chart.yaml" -d changes=stdin:///in.json -f $CHANGELOG_TEMPLATE_FILE_PATH >"$dir/CHANGELOG.md" # use the JSON above as input to render the changelog