Skip to content

Commit 74a5e79

Browse files
committed
fix: change naming of binary to be consistent across release.Dockerfile and Dockerfile (#14)
Signed-off-by: Georgy Khromov <[email protected]>
1 parent 4e153c2 commit 74a5e79

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ COPY version/ version/
2222
# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO
2323
# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,
2424
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
25-
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/main.go
25+
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o rbac-operator cmd/main.go
2626

2727
# Use distroless as minimal base image to package the manager binary
2828
# Refer to https://github.com/GoogleContainerTools/distroless for more details
2929
FROM gcr.io/distroless/static:nonroot
3030
WORKDIR /
31-
COPY --from=builder /workspace/manager .
31+
COPY --from=builder /workspace/rbac-operator .
3232
USER 65532:65532
3333

34-
ENTRYPOINT ["/manager"]
34+
ENTRYPOINT ["/rbac-operator"]

config/manager/manager.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
template:
2525
metadata:
2626
annotations:
27-
kubectl.kubernetes.io/default-container: manager
27+
kubectl.kubernetes.io/default-container: rbac-operator
2828
labels:
2929
control-plane: controller-manager
3030
spec:
@@ -55,12 +55,12 @@ spec:
5555
# type: RuntimeDefault
5656
containers:
5757
- command:
58-
- /manager
58+
- /rbac-operator
5959
args:
6060
- --leader-elect
6161
- --health-probe-bind-address=:8081
6262
image: controller:latest
63-
name: manager
63+
name: rbac-operator
6464
securityContext:
6565
capabilities:
6666
drop:

0 commit comments

Comments
 (0)