-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vm): fix panic with nil labelselector (#355)
fix panic with nil labelselector Signed-off-by: yaroslavborbat <[email protected]>
- Loading branch information
1 parent
5f585c4
commit 8df6c59
Showing
5 changed files
with
78 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
images/virtualization-artifact/hack/dlv-apiserver.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM golang:1.21.8-bookworm@sha256:ac14cc827536ef1a124cd2f7a03178c3335c1db8ad3807e7fdd57f74096abfa0 AS builder | ||
ARG TARGETOS | ||
ARG TARGETARCH | ||
|
||
WORKDIR /app/images/virtualization-artifact | ||
RUN go install github.com/go-delve/delve/cmd/dlv@latest | ||
|
||
COPY ./images/virtualization-artifact/go.mod /app/images/virtualization-artifact/ | ||
COPY ./images/virtualization-artifact/go.sum /app/images/virtualization-artifact/ | ||
COPY ./api/ /app/api/ | ||
|
||
RUN go mod download | ||
|
||
COPY ./images/virtualization-artifact/cmd /app/images/virtualization-artifact/cmd | ||
COPY ./images/virtualization-artifact/pkg /app/images/virtualization-artifact/pkg | ||
|
||
ENV GO111MODULE=on | ||
ENV GOOS=${TARGETOS:-linux} | ||
ENV GOARCH=${TARGETARCH:-amd64} | ||
ENV CGO_ENABLED=0 | ||
|
||
RUN go build -gcflags "all=-N -l" -a -o virtualization-api ./cmd/virtualization-api | ||
|
||
FROM busybox:1.36.1-glibc | ||
|
||
WORKDIR /app | ||
COPY --from=builder /go/bin/dlv /app/dlv | ||
COPY --from=builder /app/images/virtualization-artifact/virtualization-api /app/virtualization-api | ||
USER 65532:65532 | ||
|
||
ENTRYPOINT ["./dlv", "--listen=:2345", "--headless=true", "--continue", "--log=true", "--log-output=debugger,debuglineerr,gdbwire,lldbout,rpc", "--accept-multiclient", "--api-version=2", "exec", "./virtualization-api", "--"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters