test

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 15 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 radixv1.RadixAzureKeyVaultObjectType) *radixv1.RadixAzureKeyVaultObjectType

GetRadixAzureKeyVaultObjectTypePtr Gets pointer to RadixAzureKeyVaultObjectType

func IntPtr

func IntPtr(i int) *int

IntPtr Helper function to get the pointer of an int

func RegisterRadixDNSAlias added in v1.47.0

func RegisterRadixDNSAlias(radixClient radixclient.Interface, appName, componentName, envName, alias string) error

RegisterRadixDNSAlias Register RadixDNSAlias by properties

func RegisterRadixDNSAliasBySpec added in v1.47.0

func RegisterRadixDNSAliasBySpec(radixClient radixclient.Interface, alias string, aliasesSpec DNSAlias) error

RegisterRadixDNSAliasBySpec Register RadixDNSAlias by its spec

func RegisterRadixDNSAliases added in v1.47.0

func RegisterRadixDNSAliases(radixClient radixclient.Interface, radixDNSAliasesMap map[string]DNSAlias) error

RegisterRadixDNSAliases Register RadixDNSAliases

func SetRequiredEnvironmentVariables

func SetRequiredEnvironmentVariables()

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

Types

type DNSAlias added in v1.47.0

type DNSAlias struct {
	Alias       string
	AppName     string
	Environment string
	Component   string
}

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 utils.ApplicationBuilder) (*radixv1.RadixApplication, error)

ApplyApplication Will help persist an application

func (*Utils) ApplyApplicationUpdate

func (tu *Utils) ApplyApplicationUpdate(applicationBuilder utils.ApplicationBuilder) (*radixv1.RadixApplication, error)

ApplyApplicationUpdate Will help update an application

func (*Utils) ApplyDeployment

func (tu *Utils) ApplyDeployment(deploymentBuilder utils.DeploymentBuilder) (*radixv1.RadixDeployment, error)

ApplyDeployment Will help persist a deployment

func (*Utils) ApplyDeploymentUpdate

func (tu *Utils) ApplyDeploymentUpdate(deploymentBuilder utils.DeploymentBuilder) (*radixv1.RadixDeployment, error)

ApplyDeploymentUpdate Will help update a deployment

func (*Utils) ApplyEnvironment added in v1.5.7

func (tu *Utils) ApplyEnvironment(environmentBuilder utils.EnvironmentBuilder) (*radixv1.RadixEnvironment, error)

ApplyEnvironment Will help persist a RadixEnvironment

func (*Utils) ApplyEnvironmentUpdate added in v1.5.8

func (tu *Utils) ApplyEnvironmentUpdate(environmentBuilder utils.EnvironmentBuilder) (*radixv1.RadixEnvironment, error)

ApplyEnvironmentUpdate Will help update a RadixEnvironment

func (*Utils) ApplyJob

func (tu *Utils) ApplyJob(jobBuilder utils.JobBuilder) (*radixv1.RadixJob, error)

ApplyJob Will help persist a radixjob

func (*Utils) ApplyJobUpdate

func (tu *Utils) ApplyJobUpdate(jobBuilder utils.JobBuilder) (*radixv1.RadixJob, error)

ApplyJobUpdate Will help update a radixjob

func (*Utils) ApplyRegistration

func (tu *Utils) ApplyRegistration(registrationBuilder utils.RegistrationBuilder) (*radixv1.RadixRegistration, error)

ApplyRegistration Will help persist an application registration

func (*Utils) ApplyRegistrationUpdate added in v1.5.8

func (tu *Utils) ApplyRegistrationUpdate(registrationBuilder utils.RegistrationBuilder) (*radixv1.RadixRegistration, error)

ApplyRegistrationUpdate Will help update a registration

func (*Utils) CreateClusterPrerequisites

func (tu *Utils) CreateClusterPrerequisites(clustername, egressIps, subscriptionId string) error

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