hello-controller-golang

command
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

README

hello-controller (Golang implementation)

This is an golang implementation of hello-controller. This controller demonstrates how to use whitebox-controller as golang library.

Build

$ go build -o hello-controller .

Deploy

Install CRD for Hello resource.

$ kubectl apply -f manifests/crd.yaml

Start hello-controller locally.

$ ./hello-controller

Test

Create a Hello resource.

$ kubectl apply -f hello-controller/manifests/hello.yaml
hello.whitebox.summerwind.github.io/hello created

Verify that the Hello resource has been created.

$ kubectl get hello
NAME    AGE
hello   10s

hello-controller outputs the following log:

2019/06/09 15:09:08 message: Hello World

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL