From a5e76c28d3d7672bf35eecaf3f403f8a70db4a38 Mon Sep 17 00:00:00 2001 From: Sushma Korati Date: Wed, 16 Aug 2023 14:22:38 +0530 Subject: [PATCH] adding support to s390x arch --- cluster-autoscaler/Dockerfile.s390x | 20 ++++++++++++++++++++ cluster-autoscaler/Makefile | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 cluster-autoscaler/Dockerfile.s390x diff --git a/cluster-autoscaler/Dockerfile.s390x b/cluster-autoscaler/Dockerfile.s390x new file mode 100644 index 000000000000..07ed8daf9ded --- /dev/null +++ b/cluster-autoscaler/Dockerfile.s390x @@ -0,0 +1,20 @@ +# Copyright 2016 The Kubernetes Authors. All rights reserved +# +# 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. +ARG BASEIMAGE=gcr.io/distroless/static:nonroot-s390x +FROM $BASEIMAGE +LABEL maintainer="Marcin Wielgus " + +COPY cluster-autoscaler-s390x /cluster-autoscaler +WORKDIR / +CMD ["/cluster-autoscaler"] diff --git a/cluster-autoscaler/Makefile b/cluster-autoscaler/Makefile index a87b42f0e0f3..72a5db74bd37 100644 --- a/cluster-autoscaler/Makefile +++ b/cluster-autoscaler/Makefile @@ -1,4 +1,4 @@ -ALL_ARCH = amd64 arm64 +ALL_ARCH = amd64 arm64 s390x all: $(addprefix build-arch-,$(ALL_ARCH)) TAG?=dev