test

package
v1.99.999 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 13 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 GetAzureKeyVaultTypeSecrets added in v1.19.0

func GetAzureKeyVaultTypeSecrets(secrets *corev1.SecretList) *corev1.SecretList

GetAzureKeyVaultTypeSecrets Gets secrets with kube.RadixSecretRefTypeLabel and value v1.RadixSecretRefTypeAzureKeyVault

func GetRadixAzureKeyVaultObjectTypePtr added in v1.19.0

func GetRadixAzureKeyVaultObjectTypePtr(objectType v1.RadixAzureKeyVaultObjectType) *v1.RadixAzureKeyVaultObjectType

GetRadixAzureKeyVaultObjectTypePtr Gets pointer to RadixAzureKeyVaultObjectType

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,
	secretproviderclient secretProviderClient.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, egressIps string)

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

func (*Utils) GetKubeUtil added in v1.15.7

func (tu *Utils) GetKubeUtil() *kube.Kube

Jump to

Keyboard shortcuts

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