Skip to content

Commit

Permalink
Fix deploy compat with previous release (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas authored Sep 10, 2021
1 parent fa44f0c commit a42d058
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ COPY api/ api/
COPY controllers/ controllers/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o flink-operator main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
COPY --from=builder /workspace/flink-operator .
USER 65532:65532

ENTRYPOINT ["/manager"]
ENTRYPOINT ["/flink-operator"]
4 changes: 2 additions & 2 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ spec:
app: flink-operator
spec:
securityContext:
runAsNonRoot: true
runAsNonRoot: false
containers:
- command:
- /manager
- /flink-operator
args:
- --enable-leader-election
image: controller:latest
Expand Down

0 comments on commit a42d058

Please sign in to comment.