Skip to content
Browse files

Migrate to using kubebuilder. (#41)

* Migrate to using kubebuilder.

Note that the authorization server use case is a bit tricky as
kubebuilder assumes that the Kubernetes API Server is available.
To circumvent this, I kept a portion of the old webhook server
code to function as a standalone server.

Most of the new files are generated by kubebuilder, as is the
directory structure. This includes the Dockerfile and Makefile.

Also, secrets should be automatically generated by the server
and the webhooks automatically registered (in the non-standalone

Apologies for the massive change but there wasn't a gradual way
to do this.

Signed-off-by: Max Smythe <>

* Tweak Docker repo. Fix Flags.

Signed-off-by: Max Smythe <>

* Fix location of video link in README.

Signed-off-by: Max Smythe <>

* Fix newline spacing in README.

Signed-off-by: Max Smythe <>
  • Loading branch information...
maxsmythe authored and rite2nikhil committed Feb 1, 2019
1 parent d5df0ef commit a9d974ff9adb11e4b3cd87d9d232390e2857861e
@@ -1,3 +1,28 @@

# Binaries for programs and plugins

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

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

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


# editor and IDE paraphernalia

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
@@ -0,0 +1,17 @@
# Build the manager binary
FROM golang:1.10.3 as builder

# Copy in the go src
WORKDIR /go/src/
COPY pkg/ pkg/
COPY cmd/ cmd/
COPY vendor/ vendor/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager

# Copy the controller-manager into a thin image
FROM ubuntu:latest
WORKDIR /root/
COPY --from=builder /go/src/ .
ENTRYPOINT ["./manager"]

0 comments on commit a9d974f

Please sign in to comment.
You can’t perform that action at this time.