Skip to content

Commit fef9da4

Browse files
committed
Created dashboard skeleton with kubebuilder
1 parent 43351af commit fef9da4

26 files changed

+1996
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
# Binaries for programs and plugins
3+
*.exe
4+
*.exe~
5+
*.dll
6+
*.so
7+
*.dylib
8+
bin
9+
10+
# Test binary, build with `go test -c`
11+
*.test
12+
13+
# Output of the go coverage tool, specifically when used with LiteIDE
14+
*.out
15+
16+
# Kubernetes Generated files - skip generated files, except for vendored files
17+
18+
!vendor/**/zz_generated.*
19+
20+
# editor and IDE paraphernalia
21+
.idea
22+
*.swp
23+
*.swo
24+
*~
25+
26+
# Ignore vendored file
27+
vendor/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Build the manager binary
2+
FROM golang:1.10.3 as builder
3+
4+
# Copy in the go src
5+
WORKDIR /go/src/sigs.k8s.io/controller-runtime/alpha/patterns/addon/examples/dashboard-operator
6+
COPY pkg/ pkg/
7+
COPY cmd/ cmd/
8+
COPY vendor/ vendor/
9+
10+
# Build
11+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager sigs.k8s.io/controller-runtime/alpha/patterns/addon/examples/dashboard-operator/cmd/manager
12+
13+
# Copy the controller-manager into a thin image
14+
FROM ubuntu:latest
15+
WORKDIR /root/
16+
COPY --from=builder /go/src/sigs.k8s.io/controller-runtime/alpha/patterns/addon/examples/dashboard-operator/manager .
17+
ENTRYPOINT ["./manager"]

0 commit comments

Comments
 (0)