Documentation ¶
Index ¶
- Variables
- func AddToSchemes(fns ...func(s *runtime.Scheme) error) *runtime.Scheme
- func CreateResource(res client.Object)
- func DeleteResource(res client.Object)
- func GetResource(nn types.NamespacedName, resource client.Object) error
- func Promise(testFn func(g Gomega), timeout ...string)
- func Reconcile(reconciler reconcile.Reconciler, nn types.NamespacedName)
- func ReconcileForObject(reconciler reconcile.Reconciler, obj client.Object)
- func SetupKubernetes(scheme *runtime.Scheme, envTest *envtest.Environment)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEnvTest = &envtest.Environment{ CRDDirectoryPaths: []string{filepath.Join(os.Getenv("PROJECT_ROOT"), "config", "crd", "bases")}, BinaryAssetsDirectory: filepath.Join(os.Getenv("PROJECT_ROOT"), "bin", "k8s", "1.26.0-linux-amd64"), }
View Source
var LocalProxyEnvTest = &envtest.Environment{ Config: &rest.Config{Host: "localhost:8080"}, BinaryAssetsDirectory: filepath.Join(os.Getenv("PROJECT_ROOT"), "bin", "k8s", "1.26.0-linux-amd64"), CRDDirectoryPaths: []string{filepath.Join(os.Getenv("PROJECT_ROOT"), "config", "crd", "bases")}, }
Functions ¶
func CreateResource ¶
func DeleteResource ¶
func GetResource ¶
func GetResource(nn types.NamespacedName, resource client.Object) error
func Reconcile ¶
func Reconcile(reconciler reconcile.Reconciler, nn types.NamespacedName)
func ReconcileForObject ¶
func ReconcileForObject(reconciler reconcile.Reconciler, obj client.Object)
func SetupKubernetes ¶
func SetupKubernetes(scheme *runtime.Scheme, envTest *envtest.Environment)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.