Skip to content

deads2k/multi-operator-manager

Repository files navigation

Multi-Operator-Manager

Building

  • go build github.com/deads2k/multi-operator-manager/cmd/sample-operator
  • go build github.com/deads2k/multi-operator-manager/cmd/multi-operator-manager

Testing your compatible operator

./multi-operator-manager test apply-configuration --test-dir=./test-data/apply-configuration/ --output-dir=../test-output --preserve-policy=KeepAlways

The ../test-output directory will be created and a junit.xml inside will summarize the results.

Defining a test

An example is contained in test-data. You can organize your tests however you wish, but every directory with a test.yaml is considered a test and must have an input-dir and an expected-output dir.

TODO probably allow missing to mean no output. It's painful otherwise.

test.yaml

This repo contains examples, but to test your operator the operator binary name must be present.

About

experimental playspace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages