test

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAppNamespace

func CreateAppNamespace(kubeclient kubernetes.Interface, appName string) string

CreateAppNamespace Helper method to creat app namespace

func CreateEnvNamespace

func CreateEnvNamespace(kubeclient kubernetes.Interface, appName, environment string) string

CreateEnvNamespace Helper method to creat env namespace

func IntPtr

func IntPtr(i int) *int

IntPtr Helper function to get the pointer of an int

func SetRequiredEnvironmentVariables

func SetRequiredEnvironmentVariables()

SetRequiredEnvironmentVariables Sets the required environment variables needed for the operator to run properly

Types

type Utils

type Utils struct {
	// contains filtered or unexported fields
}

Utils Instance variables

func NewTestUtils

func NewTestUtils(client kubernetes.Interface, radixclient radixclient.Interface) Utils

NewTestUtils Constructor

func (*Utils) ApplyApplication

func (tu *Utils) ApplyApplication(applicationBuilder builders.ApplicationBuilder) (*v1.RadixApplication, error)

ApplyApplication Will help persist an application

func (*Utils) ApplyApplicationUpdate

func (tu *Utils) ApplyApplicationUpdate(applicationBuilder builders.ApplicationBuilder) (*v1.RadixApplication, error)

ApplyApplicationUpdate Will help update an application

func (*Utils) ApplyDeployment

func (tu *Utils) ApplyDeployment(deploymentBuilder builders.DeploymentBuilder) (*v1.RadixDeployment, error)

ApplyDeployment Will help persist a deployment

func (*Utils) ApplyDeploymentUpdate

func (tu *Utils) ApplyDeploymentUpdate(deploymentBuilder builders.DeploymentBuilder) (*v1.RadixDeployment, error)

ApplyDeploymentUpdate Will help update a deployment

func (*Utils) ApplyEnvironment added in v1.5.7

func (tu *Utils) ApplyEnvironment(environmentBuilder builders.EnvironmentBuilder) (*v1.RadixEnvironment, error)

ApplyEnvironment Will help persist a RadixEnvironment

func (*Utils) ApplyEnvironmentUpdate added in v1.5.8

func (tu *Utils) ApplyEnvironmentUpdate(environmentBuilder builders.EnvironmentBuilder) (*v1.RadixEnvironment, error)

ApplyEnvironmentUpdate Will help update a RadixEnvironment

func (*Utils) ApplyJob

func (tu *Utils) ApplyJob(jobBuilder builders.JobBuilder) (*v1.RadixJob, error)

ApplyJob Will help persist a radixjob

func (*Utils) ApplyJobUpdate

func (tu *Utils) ApplyJobUpdate(jobBuilder builders.JobBuilder) (*v1.RadixJob, error)

ApplyJobUpdate Will help update a radixjob

func (*Utils) ApplyRegistration

func (tu *Utils) ApplyRegistration(registrationBuilder builders.RegistrationBuilder) (*v1.RadixRegistration, error)

ApplyRegistration Will help persist an application registration

func (*Utils) ApplyRegistrationUpdate added in v1.5.8

func (tu *Utils) ApplyRegistrationUpdate(registrationBuilder builders.RegistrationBuilder) (*v1.RadixRegistration, error)

ApplyRegistrationUpdate Will help update a registration

func (*Utils) CreateClusterPrerequisites

func (tu *Utils) CreateClusterPrerequisites(clustername, containerRegistry string)

CreateClusterPrerequisites Will do the needed setup which is part of radix boot

Jump to

Keyboard shortcuts

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