Skip to content

johnhoman/controller-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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{
    
    }
Loading

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

About

Helpers for writing controllers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages