-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump controller-runtime, k8s/golang/workflow-controller version (#96)
* bump controller-runtime, k8s/golang/workflow-controller version Signed-off-by: jhu02 <[email protected]> * Add resource observation function; update workflow-controller version Signed-off-by: jhu02 <[email protected]> * Fix docker image role error Signed-off-by: jhu02 <[email protected]> * Update config/crd/patches/webhook_in_addons.yaml Co-authored-by: Shail Shah <[email protected]> Signed-off-by: jhu02 <[email protected]> * Update config/crd/patches/cainjection_in_addons.yaml Co-authored-by: Shail Shah <[email protected]> Signed-off-by: jhu02 <[email protected]> * Update controllers/addon_controller.go Co-authored-by: Shail Shah <[email protected]> Signed-off-by: jhu02 <[email protected]> * typos Signed-off-by: jhu02 <[email protected]> * only watch workflow in the addon-manager-system namespace Signed-off-by: jhu02 <[email protected]> * fix e2e tests Signed-off-by: jhu02 <[email protected]> * per kevin's suggestion, remove argo workflow api watch from clusterrole Signed-off-by: jhu02 <[email protected]> * format Signed-off-by: jhu02 <[email protected]> * add leases using "marker comments" Signed-off-by: jhu02 <[email protected]> * use marker-comments for lease resources Signed-off-by: jhu02 <[email protected]> * cleanup roles/marker-comment Signed-off-by: jhu02 <[email protected]> * graceful solution of duplicated addons Signed-off-by: jhu02 <[email protected]> * add comments of nocached Signed-off-by: jhu02 <[email protected]> * remove workflows from clusterrole watch Signed-off-by: jhu02 <[email protected]> * revert workflows cluster roles Signed-off-by: jhu02 <[email protected]> * Add test-load for confidence Signed-off-by: jhu02 <[email protected]> * Speed up load-tests Signed-off-by: jhu02 <[email protected]> * concurrently load tests Signed-off-by: jhu02 <[email protected]> * refactor load-tests for previous version and current version comparison Signed-off-by: jhu02 <[email protected]> * refactor load-test main Signed-off-by: jhu02 <[email protected]> * adjust load test retry mechanism Signed-off-by: jhu02 <[email protected]> * remove workflows api from cluster role Signed-off-by: jhu02 <[email protected]> * start workflowinformers Signed-off-by: jhu02 <[email protected]> * informers changes Signed-off-by: jhu02 <[email protected]> * Address comments, rename functionality Signed-off-by: jhu02 <[email protected]> * Revert removed generatedInformers initialization Signed-off-by: jhu02 <[email protected]> * cleanup broaden informer watch Signed-off-by: jhu02 <[email protected]> * a little bit efficiency cleanup Signed-off-by: jhu02 <[email protected]> * cleanup++ Signed-off-by: jhu02 <[email protected]> * optimization Signed-off-by: jhu02 <[email protected]> * per kevin's suggestion: get rid of duplicate Signed-off-by: jhu02 <[email protected]> Co-authored-by: jhu02 <[email protected]> Co-authored-by: Shail Shah <[email protected]>
- Loading branch information
1 parent
c3ff3e6
commit ff34241
Showing
22 changed files
with
1,685 additions
and
505 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
ARG SOURCE_BINARY=bin/manager | ||
FROM golang:1.17 as builder | ||
|
||
ARG TAG | ||
ARG COMMIT | ||
ARG REPO_INFO | ||
WORKDIR /workspace | ||
|
||
ADD go.mod . | ||
ADD go.sum . | ||
RUN go mod download | ||
|
||
COPY pkg/ pkg/ | ||
COPY api/ api/ | ||
COPY cmd/ cmd/ | ||
COPY controllers/ controllers/ | ||
COPY main.go main.go | ||
# Build | ||
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on 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 gcr.io/distroless/static:nonroot AS distroless | ||
WORKDIR / | ||
COPY ${SOURCE_BINARY} . | ||
EXPOSE 8080 8443 | ||
COPY --from=builder /workspace/manager . | ||
USER nonroot:nonroot | ||
|
||
ENTRYPOINT ["/manager"] | ||
CMD ["--debug=true"] | ||
ENTRYPOINT ["/manager"] |
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
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
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
Oops, something went wrong.