Skip to content

Commit

Permalink
So awesome add-ons controller (#592)
Browse files Browse the repository at this point in the history
* Provide first controller implemenation

* Finialize slack reporter implementation

* Fixing deploy resources

* Fix rbac

* Add test coverage for controller

* Change the golang builder image version

* Change the way who mock are generated

* kustomization.yaml was moved outside the /default folder, see kubernetes-sigs/kustomize#700

* Change Gopkg.lock to work with dep 0.5.x

* Add fetching commit author

* Add more info in README.md

* Apply changes after Adam review

* Add milv ignore
  • Loading branch information
mszostok authored Feb 13, 2019
1 parent 6e14ea7 commit aff6f5a
Show file tree
Hide file tree
Showing 34 changed files with 2,512 additions and 0 deletions.
27 changes: 27 additions & 0 deletions development/prow-addons-ctrl-manager/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Kubernetes Generated files - skip generated files, except for vendored files

!vendor/**/zz_generated.*

# editor and IDE paraphernalia
.idea
*.swp
*.swo
*~
vendor

scripts
22 changes: 22 additions & 0 deletions development/prow-addons-ctrl-manager/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Build the manager binary
FROM golang:1.11.4-alpine3.8 as builder

# Copy in the go src
WORKDIR /go/src/github.com/kyma-project/test-infra/development/prow-addons-ctrl-manager
COPY pkg/ pkg/
COPY cmd/ cmd/
COPY vendor/ vendor/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager github.com/kyma-project/test-infra/development/prow-addons-ctrl-manager/cmd/manager

# Copy the controller-manager into a thin image
FROM alpine:3.8
WORKDIR /

RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*

LABEL [email protected]:kyma-project/test-infra.git

COPY --from=builder /go/src/github.com/kyma-project/test-infra/development/prow-addons-ctrl-manager/manager .
ENTRYPOINT ["/manager"]
Loading

0 comments on commit aff6f5a

Please sign in to comment.