controller-gen

command module
v0.0.0-...-7a38c46 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2018 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

controller-gen

Generate Kubernetes controller stubs that sync configurable resource types

Installation

  1. Install Go 1.9+
  2. go get github.com/llparse/controller-gen

Example Usage

Generate the controller code

controller-gen \
  --output-package "github.com/llparse/controller-gen/example_generated" \
  --go-header-file /dev/null \
  -v 3 \
  --name example \
  --types core/v1/Pod,core/v1/Service,apps/v1beta2/Deployment,storage/v1/StorageClass

Build the controller

go build -o controller-example example_generated/cmd/controller/example/main.go

Run it!

./controller-example -kubeconfig ~/.kube/config -v 5

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
example_generated

Jump to

Keyboard shortcuts

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