Skip to content

Commit 93ac39c

Browse files
committed
Initial repository generation with Kubebuilder
1 parent 9c56c62 commit 93ac39c

File tree

6,624 files changed

+2330199
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,624 files changed

+2330199
-0
lines changed

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,23 @@
44
*.dll
55
*.so
66
*.dylib
7+
<<<<<<< HEAD
8+
=======
9+
bin/**
710

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

1114
# Output of the go coverage tool, specifically when used with LiteIDE
1215
*.out
16+
17+
# Kubernetes Generated files - skip generated files, except for vendored files
18+
19+
zz_generated.*
20+
!vendor/**/zz_generated.*
21+
22+
# editor and IDE paraphernalia
23+
.idea
24+
*.swp
25+
*.swo
26+
*~

Dockerfile

+17
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/github.com/openshift/hive
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 github.com/openshift/hive/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/github.com/openshift/hive/manager .
17+
ENTRYPOINT ["./manager"]

0 commit comments

Comments
 (0)