Skip to content

Commit 8dba65c

Browse files
committed
Rename binary in container to 'karpenter-clusterapi-controller'
This aligns the binary name used in the container image with the output of 'make build'. Updated Dockerfile and Helm chart to reflect the new binary name. Signed-off-by: Tsubasa Watanabe <[email protected]>
1 parent 4bbc25b commit 8dba65c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ COPY ./ ./
3434
RUN --mount=type=cache,target=/root/.cache/go-build \
3535
--mount=type=cache,target=/go/pkg/mod \
3636
CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \
37-
go build -trimpath -o manager cmd/controller/main.go
37+
go build -trimpath -o karpenter-clusterapi-controller cmd/controller/main.go
3838

3939
# Production image
4040
FROM gcr.io/distroless/static:nonroot-${ARCH}
4141
WORKDIR /
42-
COPY --from=builder /workspace/manager .
42+
COPY --from=builder /workspace/karpenter-clusterapi-controller .
4343
# Use uid of nonroot user (65532) because kubernetes expects numeric user when applying pod security policies
4444
USER 65532
45-
ENTRYPOINT ["/manager"]
45+
ENTRYPOINT ["/karpenter-clusterapi-controller"]

charts/karpenter/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
image: {{ .Values.image.tag }}
2222
imagePullPolicy: {{ .Values.image.pullPolicy }}
2323
command:
24-
- /manager
24+
- /karpenter-clusterapi-controller
2525
{{- with .Values.arguments }}
2626
args:
2727
{{- toYaml . | nindent 12 }}

0 commit comments

Comments
 (0)