module
Version:
v0.0.1-alpha.7
Opens a new window with list of versions in this module.
Published: May 7, 2022
License: Apache-2.0
Opens a new window with license information.
README
¶
Helpers for writing kubernetes controllers
Goals
- Provide boilerplate for Kubernetes tests such as resource retrieval
- Provide custom matchers to assert on common type status's
Design
classDiagram
Kind <|-- Pod
Kind <|-- ServiceAccount
class Pod{
}
Examples
Integration Tests
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()))
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.