Documentation
¶
Index ¶
Constants ¶
View Source
const (
OpenshiftConfigNamespace string = "openshift-config"
)
Variables ¶
This section is empty.
Functions ¶
func CheckCleanEnvironment ¶
checkCleanEnvironment checks that all of the resource types that are to be used in this test currently have no items. This ensures that no atifacts from previous test runs are interfering with the current test.
func CleanEnvironment ¶
cleanEnvironment is called at the end of the test to ensure that all the resources that were created during the test are removed ahead of the next test starting.
func NewTestEnv ¶
func NewTestEnv(t *testing.T) *envtest.Environment
Types ¶
type ClientSet ¶
type ClientSet struct { corev1client.CoreV1Interface batchv1client.BatchV1Interface appsv1client.AppsV1Interface clientconfigv1.ConfigV1Interface clientmachineconfigv1.MachineconfigurationV1Interface clientapiextensionsv1.ApiextensionsV1Interface clientoperatorsv1alpha1.OperatorV1alpha1Interface clientbuildv1.BuildV1Interface clientimagev1.ImageV1Interface clientmachineconfigv1alpha1.MachineconfigurationV1alpha1Interface // contains filtered or unexported fields }
func NewClientSet ¶
NewClientSet returns a *ClientBuilder with the given kubeconfig.
func NewClientSetFromConfig ¶
NewClientSetFromConfig returns a *ClientBuilder with the given rest config.
func (*ClientSet) GetKubeclient ¶
func (*ClientSet) GetKubeconfig ¶
func (*ClientSet) GetMcfgclient ¶
func (cs *ClientSet) GetMcfgclient() mcfgclientset.Interface
func (*ClientSet) GetRestConfig ¶
Allows the instantiation of additional clients with the same config.
Click to show internal directories.
Click to hide internal directories.