Update Alpine and kubectl

Update Alpine to v3.14
Update kubectl to v1.21.2

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2021-07-05 14:09:33 +03:00
parent b7380ab152
commit 5b2711f943
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ jobs:
- name: Setup Kubectl
uses: fluxcd/pkg/actions/kubectl@main
with:
version: 1.21.1
version: 1.21.2
- name: Override Kubebuilder kubectl
run: sudo cp /usr/local/bin/kubectl /home/runner/work/kustomize-controller/kustomize-controller/kubebuilder/bin/kubectl
- name: Run tests

View File

@ -6,7 +6,7 @@ WORKDIR /workspace
RUN apk add --no-cache ca-certificates curl
RUN kubectl_ver=1.21.1 && \
RUN kubectl_ver=1.21.2 && \
arch=${TARGETPLATFORM:-linux/amd64} && \
if [ "$TARGETPLATFORM" == "linux/arm/v7" ]; then arch="linux/arm"; fi && \
curl -sL https://storage.googleapis.com/kubernetes-release/release/v${kubectl_ver}/bin/${arch}/kubectl \
@ -32,7 +32,7 @@ COPY internal/ internal/
# build
RUN CGO_ENABLED=0 go build -a -o kustomize-controller main.go
FROM alpine:3.13
FROM alpine:3.14
LABEL org.opencontainers.image.source="https://github.com/fluxcd/kustomize-controller"