Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: mingzhou.swx <[email protected]>
  • Loading branch information
mingzhou.swx committed Nov 24, 2022
1 parent b3bb18f commit f9da222
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ COPY go.sum go.sum
COPY main.go main.go
COPY api/ api/
COPY pkg/ pkg/
COPY vendor/ vendor/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager 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
FROM katanomi/distroless-static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
COPY lua_configuration /lua_configuration
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/batchrelease/control/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ func ShouldWaitWorkloadToBePromoted(release *v1alpha1.BatchRelease) bool {
}

func ShouldResumeWorkload(release *v1alpha1.BatchRelease) bool {
return release.Spec.Cancelled != nil && release.Spec.Cancelled.Policy.WaitWorkloadPromoted
return release.Spec.Cancelled != nil && release.Spec.Cancelled.Policy.ResumeWorkload
}

0 comments on commit f9da222

Please sign in to comment.