File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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
2929FROM gcr.io/distroless/static:nonroot
3030WORKDIR /
31- COPY --from=builder /workspace/manager .
31+ COPY --from=builder /workspace/rbac-operator .
3232USER 65532:65532
3333
34- ENTRYPOINT ["/manager " ]
34+ ENTRYPOINT ["/rbac-operator " ]
Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments