fake

package
v4.5.2-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakePGOClient

func NewFakePGOClient() (kubeapi.Interface, error)

NewFakePGOClient creates a fake PostgreSQL Operator client. Specifically, it creates a fake client containing a 'pgo-config' ConfigMap as needed to initialize the Operator (i.e. call the 'operator' packages 'Initialize()' function). This allows for the proper initialization of the Operator in various unit tests where the various resources loaded during initialization (e.g. templates, config and/or global variables) are required.

Types

type Clientset

type Clientset struct {
	*fakekubernetes.Clientset
	PGOClientset *fakecrunchydata.Clientset
}

func (*Clientset) CrunchydataV1

func (c *Clientset) CrunchydataV1() crunchydatav1.CrunchydataV1Interface

CrunchydataV1 retrieves the CrunchydataV1Client

Jump to

Keyboard shortcuts

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