File tree Expand file tree Collapse file tree 6 files changed +28
-15
lines changed
charts/fleetconfig-controller Expand file tree Collapse file tree 6 files changed +28
-15
lines changed Original file line number Diff line number Diff line change 33ARG OS
44ARG ARCH
55
6+ ARG GO_BASE_IMAGE=golang:1.24.4-alpine3.22
7+ ARG PYTHON_BASE_IMAGE=python:3.13-alpine
8+ ARG DISTROLESS_IMAGE=gcr.io/distroless/static:nonroot
9+
610## Stage 1: Build the manager binary
7- FROM golang:1.24.4-alpine3.22 AS builder
11+ FROM ${GO_BASE_IMAGE} AS builder
812ARG OS
913ARG ARCH
1014
@@ -27,7 +31,7 @@ COPY pkg/ pkg/
2731RUN CGO_ENABLED=0 GOOS=${OS:-linux} GOARCH=${ARCH} go build -a -o manager cmd/main.go
2832
2933## Stage 2: Install dependencies
30- FROM golang:1.24.4-alpine3.22 AS dependencies
34+ FROM ${GO_BASE_IMAGE} AS dependencies
3135ARG OS
3236ARG ARCH
3337
@@ -38,7 +42,7 @@ ARG CLUSTERADM_VERSION=1.0.0
3842RUN curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash -s -- ${CLUSTERADM_VERSION}
3943
4044## Stage 3: Compress binaries with upx to reduce image size
41- FROM python:3.13-alpine AS upx
45+ FROM ${PYTHON_BASE_IMAGE} AS upx
4246RUN apk update && apk add --no-cache upx
4347
4448WORKDIR /output
@@ -51,7 +55,7 @@ RUN mkdir -p /output && \
5155
5256## Stage 4: Finalize
5357
54- FROM gcr.io/distroless/static:nonroot AS production
58+ FROM ${DISTROLESS_IMAGE} AS production
5559WORKDIR /
5660
5761COPY --from=upx /output/manager .
Original file line number Diff line number Diff line change 22ARG ARCH
33ARG PROVIDER
44
5+ ARG GO_BASE_IMAGE=golang:1.24.4-alpine3.22
6+
57# Build the manager binary
6- FROM golang:1.24.4-alpine3.22 AS builder
8+ FROM ${GO_BASE_IMAGE} AS builder
79ARG OS
810ARG ARCH
911ARG PROVIDER
Original file line number Diff line number Diff line change 33ARG OS
44ARG ARCH
55
6+ ARG GO_BASE_IMAGE=golang:1.24.4-alpine3.22
7+ ARG PYTHON_BASE_IMAGE=python:3.13-alpine
8+ ARG DISTROLESS_IMAGE=gcr.io/distroless/static:nonroot
9+
610## Stage 1: Build the manager binary
7- FROM golang:1.24.4-alpine3.22 AS builder
11+ FROM ${GO_BASE_IMAGE} AS builder
812ARG OS
913ARG ARCH
1014
@@ -27,7 +31,7 @@ COPY pkg/ pkg/
2731RUN CGO_ENABLED=0 GOOS=${OS:-linux} GOARCH=${ARCH} go build -a -o manager cmd/main.go
2832
2933## Stage 2: Install dependencies
30- FROM golang:1.24.4-alpine3.22 AS dependencies
34+ FROM ${GO_BASE_IMAGE} AS dependencies
3135ARG OS
3236ARG ARCH
3337
@@ -44,7 +48,7 @@ RUN curl -Lo aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-au
4448 mv aws-iam-authenticator /usr/local/bin/aws-iam-authenticator
4549
4650## Stage 3: Compress binaries with upx to reduce image size
47- FROM python:3.13-alpine AS upx
51+ FROM ${PYTHON_BASE_IMAGE} AS upx
4852RUN apk update && apk add --no-cache upx
4953
5054WORKDIR /output
@@ -59,7 +63,7 @@ RUN mkdir -p /output && \
5963
6064## Stage 4: Finalize
6165
62- FROM gcr.io/distroless/static:nonroot AS production
66+ FROM ${DISTROLESS_IMAGE} AS production
6367
6468WORKDIR /
6569
Original file line number Diff line number Diff line change 33ARG OS
44ARG ARCH
55
6+ ARG GO_BASE_IMAGE=golang:1.24.4-alpine3.22
7+ ARG PYTHON_BASE_IMAGE=python:3.13-alpine
8+
69## Stage 1: Build the manager binary
7- FROM golang:1.24.4-alpine3.22 AS builder
10+ FROM ${GO_BASE_IMAGE} AS builder
811ARG OS
912ARG ARCH
1013
@@ -27,7 +30,7 @@ COPY pkg/ pkg/
2730RUN CGO_ENABLED=0 GOOS=${OS:-linux} GOARCH=${ARCH} go build -a -o manager cmd/main.go
2831
2932## Stage 2: Install dependencies
30- FROM golang:1.24.4-alpine3.22 AS dependencies
33+ FROM ${GO_BASE_IMAGE} AS dependencies
3134ARG OS
3235ARG ARCH
3336
@@ -38,7 +41,7 @@ ARG CLUSTERADM_VERSION=1.0.0
3841RUN curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash -s -- ${CLUSTERADM_VERSION}
3942
4043## Stage 3: Compress binaries with upx to reduce image size
41- FROM python:3.13-alpine AS upx
44+ FROM ${PYTHON_BASE_IMAGE} AS upx
4245RUN apk update && apk add --no-cache upx
4346
4447WORKDIR /output
@@ -52,7 +55,7 @@ RUN mkdir -p /output && \
5255## Stage 4: Finalize
5356
5457# Use Python image instead of distroless to support gcloud
55- FROM python:3.13-alpine AS production
58+ FROM ${PYTHON_BASE_IMAGE} AS production
5659ARG OS
5760ARG ARCH
5861
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ Refer to the [Multicluster Controlplane configuration](https://github.com/open-c
111111| ` replicas ` | fleetconfig-controller replica count | ` 1 ` |
112112| ` imageRegistry ` | Image registry | ` "" ` |
113113| ` image.repository ` | Image repository | ` quay.io/open-cluster-management/fleetconfig-controller ` |
114- | ` image.tag ` | Image tag | ` v0.0.3 ` |
114+ | ` image.tag ` | Image tag | ` v0.0.5 ` |
115115| ` image.pullPolicy ` | Image pull policy | ` IfNotPresent ` |
116116| ` imagePullSecrets ` | Image pull secrets | ` [] ` |
117117| ` serviceAccount.annotations ` | Annotations to add to the service account | ` {} ` |
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ imageRegistry: ""
247247# # @param image.pullPolicy Image pull policy
248248image :
249249 repository : quay.io/open-cluster-management/fleetconfig-controller
250- tag : v0.0.4
250+ tag : v0.0.5
251251 pullPolicy : IfNotPresent
252252
253253# # @param imagePullSecrets Image pull secrets
You can’t perform that action at this time.
0 commit comments