diff --git a/experiments/compositions/expanders/helm-expander/Dockerfile b/experiments/compositions/expanders/helm-expander/Dockerfile index ef69a06ffa..7402b243ce 100644 --- a/experiments/compositions/expanders/helm-expander/Dockerfile +++ b/experiments/compositions/expanders/helm-expander/Dockerfile @@ -37,8 +37,7 @@ FROM golang:1.23.2 as bins WORKDIR /workspace # Version string to embed in built binary. -ARG HELM_VERSION=v3.9.0 -ARG KUSTOMIZE_VERSION=v4.5.2 +ARG HELM_VERSION=v3.16.2 # Install Helm RUN wget https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O /tmp/helm-${HELM_VERSION}-linux-amd64.tar.gz && \ @@ -59,4 +58,4 @@ COPY --from=build-stage /go/src/app/expander . ENTRYPOINT ["helm"] # Switch to non-root user -USER 1000 \ No newline at end of file +USER 1000 diff --git a/experiments/compositions/expanders/helm-expander/hack/update-images.sh b/experiments/compositions/expanders/helm-expander/hack/update-images.sh new file mode 100755 index 0000000000..9e9e49fb04 --- /dev/null +++ b/experiments/compositions/expanders/helm-expander/hack/update-images.sh @@ -0,0 +1,16 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +NEW_HELM_VERSION="$(curl --silent "https://api.github.com/repos/helm/helm/releases/latest" | jq -r .tag_name)" +sed -i -E "s|^(ARG HELM_VERSION=).*$|\1$NEW_HELM_VERSION|g" Dockerfile