Helpers for writing kubernetes controllers
- Provide boilerplate for Kubernetes tests such as resource retrieval
- Provide custom matchers to assert on common type status's
classDiagram
Kind <|-- Pod
Kind <|-- ServiceAccount
class Pod{
}
package something_test
import (
. "github.com/johnhoman/controller-tools"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
type MySuite struct {
EnvTest
}
func (suite *MySuite) TestSomething() {
suite.Nil(Create(suite.GetManager()))
}