Skip to content

Commit

Permalink
Merge pull request #11 from mallardduck/update/main-drop-s390
Browse files Browse the repository at this point in the history
Drop s390x builds

(cherry picked from commit c60a509)
  • Loading branch information
mallardduck committed Sep 3, 2024
1 parent 7beabbc commit aac7767
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/head-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
with:
image: ${{ vars.IMAGE_NAME || 'kuberlr-kubectl' }}
tag: ${{ needs.prebuild-env.outputs.branch_static_tag }}
platforms: "linux/amd64,linux/arm64,linux/s390x"
platforms: "linux/amd64,linux/arm64"

public-registry: ${{ env.PUBLIC_REGISTRY }}
public-repo: ${{ vars.REPO || github.repository_owner }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
with:
image: kuberlr-kubectl
tag: ${{ github.ref_name }}
platforms: "linux/amd64,linux/arm64,linux/s390x"
platforms: "linux/amd64,linux/arm64"

public-registry: ${{ env.PUBLIC_REGISTRY }}
public-repo: ${{ vars.REPO || github.repository_owner }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include hack/make/deps.mk
include hack/make/build.mk

# Define target platforms, image builder and the fully qualified image name.
TARGET_PLATFORMS ?= linux/amd64,linux/arm64,linux/s390x
TARGET_PLATFORMS ?= linux/amd64,linux/arm64

REPO ?= rancher
IMAGE ?= kuberlr-kubectl
Expand Down
11 changes: 4 additions & 7 deletions hack/make/deps.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@ KUBECTL27_SUM_s390x ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL27_VE
KUBECTL28_VERSION := v1.28.13
KUBECTL28_SUM_arm64 ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL28_VERSION)/bin/linux/arm64/kubectl.sha256")
KUBECTL28_SUM_amd64 ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL28_VERSION)/bin/linux/amd64/kubectl.sha256")
KUBECTL28_SUM_s390x ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL28_VERSION)/bin/linux/s390x/kubectl.sha256")

KUBECTL29_VERSION := v1.29.8
KUBECTL29_SUM_arm64 ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL29_VERSION)/bin/linux/arm64/kubectl.sha256")
KUBECTL29_SUM_amd64 ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL29_VERSION)/bin/linux/amd64/kubectl.sha256")
KUBECTL29_SUM_s390x ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL29_VERSION)/bin/linux/s390x/kubectl.sha256")

KUBECTL30_VERSION := v1.30.4
KUBECTL30_SUM_arm64 ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL30_VERSION)/bin/linux/arm64/kubectl.sha256")
KUBECTL30_SUM_amd64 ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL30_VERSION)/bin/linux/amd64/kubectl.sha256")
KUBECTL30_SUM_s390x ?= $(shell curl -L "https://dl.k8s.io/release/$(KUBECTL30_VERSION)/bin/linux/s390x/kubectl.sha256")

KUBECTL27 := "$(KUBECTL27_VERSION):$(KUBECTL27_SUM_arm64):$(KUBECTL27_SUM_amd64):$(KUBECTL27_SUM_s390x)"
KUBECTL28 := "$(KUBECTL28_VERSION):$(KUBECTL28_SUM_arm64):$(KUBECTL28_SUM_amd64):$(KUBECTL28_SUM_s390x)"
KUBECTL29 := "$(KUBECTL29_VERSION):$(KUBECTL29_SUM_arm64):$(KUBECTL29_SUM_amd64):$(KUBECTL29_SUM_s390x)"
KUBECTL30 := "$(KUBECTL30_VERSION):$(KUBECTL30_SUM_arm64):$(KUBECTL30_SUM_amd64):$(KUBECTL30_SUM_s390x)"
KUBECTL27 := "$(KUBECTL27_VERSION):$(KUBECTL27_SUM_arm64):$(KUBECTL27_SUM_amd64)"
KUBECTL28 := "$(KUBECTL28_VERSION):$(KUBECTL28_SUM_arm64):$(KUBECTL28_SUM_amd64)"
KUBECTL29 := "$(KUBECTL29_VERSION):$(KUBECTL29_SUM_arm64):$(KUBECTL29_SUM_amd64)"
KUBECTL30 := "$(KUBECTL30_VERSION):$(KUBECTL30_SUM_arm64):$(KUBECTL30_SUM_amd64)"

KUBECTL_VERSION_INFO := "$(KUBECTL27) $(KUBECTL28) $(KUBECTL29) $(KUBECTL30)"

Expand Down
1 change: 0 additions & 1 deletion package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ RUN set -fx; versions=($KUBECTL_VERSION_INFO); \
version=$(echo ${versions[$i]} | cut -d: -f1); \
arm64_sum=$(echo ${versions[$i]} | cut -d: -f2); \
amd64_sum=$(echo ${versions[$i]} | cut -d: -f3); \
s390x_sum=$(echo ${versions[$i]} | cut -d: -f4); \
kubectl_target="/tmp/kubectl${version:1}"; \
KUBE_SUM_NAME="${TARGETARCH}_sum"; \
KUBE_SUM=${!KUBE_SUM_NAME}; \
Expand Down

0 comments on commit aac7767

Please sign in to comment.