From eccc35aeedcc50826a4b1f2f1ba7a0a349b537aa Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Thu, 22 Jun 2023 09:15:48 +0000 Subject: [PATCH] Enhancement: Bump `v1.24.x` variants to `v1.24.15` --- .github/workflows/ci-master-pr.yml | 26 ++++----- README.md | 4 +- generate/definitions/VARIANTS.ps1 | 2 +- variants/v1.24.15-alpine-3.8/Dockerfile | 19 +++++++ .../v1.24.15-alpine-3.8/docker-entrypoint.sh | 10 ++++ .../Dockerfile | 57 +++++++++++++++++++ .../docker-entrypoint.sh | 10 ++++ 7 files changed, 112 insertions(+), 16 deletions(-) create mode 100644 variants/v1.24.15-alpine-3.8/Dockerfile create mode 100644 variants/v1.24.15-alpine-3.8/docker-entrypoint.sh create mode 100644 variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8/Dockerfile create mode 100644 variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8/docker-entrypoint.sh diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index 44b9033..8c19f14 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -753,10 +753,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-v1-24-11-alpine-3-8: + build-v1-24-15-alpine-3-8: runs-on: ubuntu-latest env: - VARIANT: v1.24.11-alpine-3.8 + VARIANT: v1.24.15-alpine-3.8 steps: - name: Checkout uses: actions/checkout@v3 @@ -828,7 +828,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/v1.24.11-alpine-3.8 + context: variants/v1.24.15-alpine-3.8 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -842,7 +842,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/v1.24.11-alpine-3.8 + context: variants/v1.24.15-alpine-3.8 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -855,7 +855,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/v1.24.11-alpine-3.8 + context: variants/v1.24.15-alpine-3.8 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -873,10 +873,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-v1-24-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8: + build-v1-24-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8: runs-on: ubuntu-latest env: - VARIANT: v1.24.11-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8 + VARIANT: v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8 steps: - name: Checkout uses: actions/checkout@v3 @@ -948,7 +948,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/v1.24.11-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8 + context: variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -962,7 +962,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/v1.24.11-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8 + context: variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -975,7 +975,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/v1.24.11-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8 + context: variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -3394,7 +3394,7 @@ jobs: mv /tmp/.buildx-cache-new /tmp/.buildx-cache update-draft-release: - needs: [build-v1-27-3-alpine-3-8, build-v1-27-3-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-26-6-alpine-3-8, build-v1-26-6-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-25-11-alpine-3-8, build-v1-25-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-24-11-alpine-3-8, build-v1-24-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-23-17-alpine-3-8, build-v1-23-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-22-17-alpine-3-8, build-v1-22-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-21-14-alpine-3-8, build-v1-21-14-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-20-15-alpine-3-8, build-v1-20-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-19-16-alpine-3-8, build-v1-19-16-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-18-20-alpine-3-8, build-v1-18-20-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-17-17-alpine-3-8, build-v1-17-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-16-15-alpine-3-8, build-v1-16-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-15-12-alpine-3-8, build-v1-15-12-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-14-10-alpine-3-8, build-v1-14-10-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8] + needs: [build-v1-27-3-alpine-3-8, build-v1-27-3-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-26-6-alpine-3-8, build-v1-26-6-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-25-11-alpine-3-8, build-v1-25-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-24-15-alpine-3-8, build-v1-24-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-23-17-alpine-3-8, build-v1-23-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-22-17-alpine-3-8, build-v1-22-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-21-14-alpine-3-8, build-v1-21-14-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-20-15-alpine-3-8, build-v1-20-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-19-16-alpine-3-8, build-v1-19-16-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-18-20-alpine-3-8, build-v1-18-20-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-17-17-alpine-3-8, build-v1-17-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-16-15-alpine-3-8, build-v1-16-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-15-12-alpine-3-8, build-v1-15-12-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-14-10-alpine-3-8, build-v1-14-10-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8] if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: @@ -3407,7 +3407,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish-draft-release: - needs: [build-v1-27-3-alpine-3-8, build-v1-27-3-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-26-6-alpine-3-8, build-v1-26-6-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-25-11-alpine-3-8, build-v1-25-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-24-11-alpine-3-8, build-v1-24-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-23-17-alpine-3-8, build-v1-23-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-22-17-alpine-3-8, build-v1-22-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-21-14-alpine-3-8, build-v1-21-14-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-20-15-alpine-3-8, build-v1-20-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-19-16-alpine-3-8, build-v1-19-16-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-18-20-alpine-3-8, build-v1-18-20-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-17-17-alpine-3-8, build-v1-17-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-16-15-alpine-3-8, build-v1-16-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-15-12-alpine-3-8, build-v1-15-12-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-14-10-alpine-3-8, build-v1-14-10-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8] + needs: [build-v1-27-3-alpine-3-8, build-v1-27-3-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-26-6-alpine-3-8, build-v1-26-6-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-25-11-alpine-3-8, build-v1-25-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-24-15-alpine-3-8, build-v1-24-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-23-17-alpine-3-8, build-v1-23-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-22-17-alpine-3-8, build-v1-22-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-21-14-alpine-3-8, build-v1-21-14-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-20-15-alpine-3-8, build-v1-20-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-19-16-alpine-3-8, build-v1-19-16-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-18-20-alpine-3-8, build-v1-18-20-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-17-17-alpine-3-8, build-v1-17-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-16-15-alpine-3-8, build-v1-16-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-15-12-alpine-3-8, build-v1-15-12-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-14-10-alpine-3-8, build-v1-14-10-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8] if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: @@ -3422,7 +3422,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} update-dockerhub-description: - needs: [build-v1-27-3-alpine-3-8, build-v1-27-3-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-26-6-alpine-3-8, build-v1-26-6-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-25-11-alpine-3-8, build-v1-25-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-24-11-alpine-3-8, build-v1-24-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-23-17-alpine-3-8, build-v1-23-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-22-17-alpine-3-8, build-v1-22-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-21-14-alpine-3-8, build-v1-21-14-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-20-15-alpine-3-8, build-v1-20-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-19-16-alpine-3-8, build-v1-19-16-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-18-20-alpine-3-8, build-v1-18-20-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-17-17-alpine-3-8, build-v1-17-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-16-15-alpine-3-8, build-v1-16-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-15-12-alpine-3-8, build-v1-15-12-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-14-10-alpine-3-8, build-v1-14-10-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8] + needs: [build-v1-27-3-alpine-3-8, build-v1-27-3-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-26-6-alpine-3-8, build-v1-26-6-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-25-11-alpine-3-8, build-v1-25-11-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-24-15-alpine-3-8, build-v1-24-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-23-17-alpine-3-8, build-v1-23-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-22-17-alpine-3-8, build-v1-22-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-21-14-alpine-3-8, build-v1-21-14-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-20-15-alpine-3-8, build-v1-20-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-19-16-alpine-3-8, build-v1-19-16-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-18-20-alpine-3-8, build-v1-18-20-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-17-17-alpine-3-8, build-v1-17-17-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-16-15-alpine-3-8, build-v1-16-15-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-15-12-alpine-3-8, build-v1-15-12-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8, build-v1-14-10-alpine-3-8, build-v1-14-10-envsubst-git-jq-kustomize-sops-ssh-alpine-3-8] if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 790186b..f8717ea 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ Dockerized `kubectl` with useful tools. | `:v1.26.6-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8` | [View](variants/v1.26.6-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8) | | `:v1.25.11-alpine-3.8` | [View](variants/v1.25.11-alpine-3.8) | | `:v1.25.11-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8` | [View](variants/v1.25.11-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8) | -| `:v1.24.11-alpine-3.8` | [View](variants/v1.24.11-alpine-3.8) | -| `:v1.24.11-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8` | [View](variants/v1.24.11-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8) | +| `:v1.24.15-alpine-3.8` | [View](variants/v1.24.15-alpine-3.8) | +| `:v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8` | [View](variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8) | | `:v1.23.17-alpine-3.8` | [View](variants/v1.23.17-alpine-3.8) | | `:v1.23.17-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8` | [View](variants/v1.23.17-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8) | | `:v1.22.17-alpine-3.8` | [View](variants/v1.22.17-alpine-3.8) | diff --git a/generate/definitions/VARIANTS.ps1 b/generate/definitions/VARIANTS.ps1 index 2601e0c..a9b202a 100755 --- a/generate/definitions/VARIANTS.ps1 +++ b/generate/definitions/VARIANTS.ps1 @@ -2,7 +2,7 @@ $local:VARIANTS_PACKAGE_VERSIONS = @( 'v1.27.3' 'v1.26.6' 'v1.25.11' - 'v1.24.11' + 'v1.24.15' 'v1.23.17' 'v1.22.17' 'v1.21.14' diff --git a/variants/v1.24.15-alpine-3.8/Dockerfile b/variants/v1.24.15-alpine-3.8/Dockerfile new file mode 100644 index 0000000..ff11eec --- /dev/null +++ b/variants/v1.24.15-alpine-3.8/Dockerfile @@ -0,0 +1,19 @@ +FROM alpine:3.8 +ARG TARGETPLATFORM +ARG BUILDPLATFORM +RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" + +RUN apk add --no-cache ca-certificates + +# When $TARGETPLATFORM is linux/arm/v7, strip out the '/v6' or '/v7' from it +RUN BIN_URL=https://storage.googleapis.com/kubernetes-release/release/v1.24.15/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ + && SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ + && wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ + && chmod +x /usr/local/bin/kubectl \ + && sha512sum /usr/local/bin/kubectl | grep "^$SHA512 " \ + && kubectl version --client + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x /docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/v1.24.15-alpine-3.8/docker-entrypoint.sh b/variants/v1.24.15-alpine-3.8/docker-entrypoint.sh new file mode 100644 index 0000000..2cbc6d4 --- /dev/null +++ b/variants/v1.24.15-alpine-3.8/docker-entrypoint.sh @@ -0,0 +1,10 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- kubectl "$@" +elif [ $# -gt 0 ] && kubectl "$1" --help > /dev/null 2>&1; then + set -- kubectl "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8/Dockerfile b/variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8/Dockerfile new file mode 100644 index 0000000..a6f48c0 --- /dev/null +++ b/variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8/Dockerfile @@ -0,0 +1,57 @@ +FROM alpine:3.8 +ARG TARGETPLATFORM +ARG BUILDPLATFORM +RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" + +RUN apk add --no-cache ca-certificates + +# When $TARGETPLATFORM is linux/arm/v7, strip out the '/v6' or '/v7' from it +RUN BIN_URL=https://storage.googleapis.com/kubernetes-release/release/v1.24.15/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ + && SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ + && wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ + && chmod +x /usr/local/bin/kubectl \ + && sha512sum /usr/local/bin/kubectl | grep "^$SHA512 " \ + && kubectl version --client + +# From: https://github.com/nginxinc/docker-nginx/blob/1.17.0/stable/alpine/Dockerfile +# Bring in gettext so we can get `envsubst`, then throw +# the rest away. To do this, we need to install `gettext` +# then move `envsubst` out of the way so `gettext` can +# be deleted completely, then move `envsubst` back. +RUN apk add --no-cache --virtual .gettext gettext \ + && mv /usr/bin/envsubst /tmp/ \ + \ + && runDeps="$( \ + scanelf --needed --nobanner /tmp/envsubst \ + | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ + | sort -u \ + | xargs -r apk info --installed \ + | sort -u \ + )" \ + && apk add --no-cache $runDeps \ + && apk del .gettext \ + && mv /tmp/envsubst /usr/local/bin/ + +RUN apk add --no-cache git + +RUN apk add --no-cache jq + +RUN apk add --no-cache curl \ + && curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/v2.0.3/kustomize_2.0.3_linux_amd64 -o /usr/local/bin/kustomize \ + && chmod +x /usr/local/bin/kustomize \ + && apk del curl + +RUN set -eux; \ + wget -qO- https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux > /usr/local/bin/sops; \ + chmod +x /usr/local/bin/sops; \ + sha256sum /usr/local/bin/sops | grep '^185348fd77fc160d5bdf3cd20ecbc796163504fd3df196d7cb29000773657b74 '; \ + sops --version + +RUN apk add --no-cache gnupg + +RUN apk add --no-cache openssh-client + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x /docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8/docker-entrypoint.sh b/variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8/docker-entrypoint.sh new file mode 100644 index 0000000..2cbc6d4 --- /dev/null +++ b/variants/v1.24.15-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8/docker-entrypoint.sh @@ -0,0 +1,10 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- kubectl "$@" +elif [ $# -gt 0 ] && kubectl "$1" --help > /dev/null 2>&1; then + set -- kubectl "$@" +fi + +exec "$@" \ No newline at end of file