k8s-test-controller

command module
v0.0.0-...-3d8bab0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: MIT Imports: 14 Imported by: 0

README

k8s-test-controller

Add test resources to test your Kubernetes cluster setup.

Check out the docs

Development

Generating code

If you change any API types, you must regenerate all of the supporting code. This can be done by using the generate make target, e.g.

$ make generate

The generators tend not to error even if something you may consider to be a problem occurs, thus it's important to ensure you can still build your application after running the generators.

Building

The actual golang app can be built with a simple go build. The generated files required are committed to the repo to ensure it stays in sync. We should also use a verify step to ensure that the generated files are in sync with their respective types.go files, but for brevity have omitted that here.

$ go build

Running

Running the application is as follows:

$ go run main.go -kubeconfig ~/.kube/config

Then we can go ahead and create a Tests and TestRuns!

$ kubectl create -f docs/tests.yaml
$ kubectl create -f docs/test-run.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
apis/tester
Package tester is the internal version of the API.
Package tester is the internal version of the API.
apis/tester/install
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.
apis/tester/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.
client
MIT License Copyright (c) 2017 Sean Ross-Ross See License in the root of this repo.
MIT License Copyright (c) 2017 Sean Ross-Ross See License in the root of this repo.
client/fake
MIT License Copyright (c) 2017 Sean Ross-Ross See License in the root of this repo.
MIT License Copyright (c) 2017 Sean Ross-Ross See License in the root of this repo.
client/internalclientset
MIT License Copyright (c) 2017 Sean Ross-Ross See License in the root of this repo.
MIT License Copyright (c) 2017 Sean Ross-Ross See License in the root of this repo.
client/internalclientset/fake
MIT License Copyright (c) 2017 Sean Ross-Ross See License in the root of this repo.
MIT License Copyright (c) 2017 Sean Ross-Ross See License in the root of this repo.
client/internalclientset/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/internalclientset/typed/tester/internalversion
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/internalclientset/typed/tester/internalversion/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/typed/srossross/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/typed/srossross/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
run

Jump to

Keyboard shortcuts

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