controller-tools

module
v0.0.1-alpha.7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0

README

controller-tools

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()))
}

Jump to

Keyboard shortcuts

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