Skip to content

Commit

Permalink
Add anonymous error telemetry support (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBollag authored Dec 14, 2023
1 parent c541b5d commit bf7478b
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 72 deletions.
5 changes: 5 additions & 0 deletions src/operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ ARG TARGETARCH
RUN go test -v ./...
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -o manager .

# add version file
ARG VERSION
RUN echo -n $VERSION > /version

# 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 .
USER 65532:65532
COPY --from=builder /version .

ENTRYPOINT ["/manager"]
24 changes: 12 additions & 12 deletions src/operator/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 27 additions & 28 deletions src/operator/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bf7478b

Please sign in to comment.