Documentation ¶
Index ¶
- Constants
- func BoolPtr(value bool) *bool
- func BuildResourceRequirement(source *v1.ResourceRequirements) corev1.ResourceRequirements
- func EqualPvcLists(pvcList1, pvcList2 *[]corev1.PersistentVolumeClaim, ...) (bool, error)
- func EqualPvcs(pvc1 *corev1.PersistentVolumeClaim, pvc2 *corev1.PersistentVolumeClaim, ...) (bool, error)
- func EqualStorageClassLists(scList1, scList2 *[]storagev1.StorageClass) (bool, error)
- func EqualStorageClasses(sc1, sc2 *storagev1.StorageClass) (bool, error)
- func EqualStringLists(list1, list2 []string) bool
- func EqualStringMaps(map1, map2 map[string]string) bool
- func EqualStringsAsPtr(s1, s2 *string) bool
- func GetAppAndTagPairFromName(name string) (string, string)
- func GetAppNamespace(appName string) string
- func GetAuxiliaryComponentDeploymentName(componentName string, auxSuffix string) string
- func GetAuxiliaryComponentSecretName(componentName string, suffix string) string
- func GetAuxiliaryComponentServiceName(componentName string, auxSuffix string) string
- func GetComponentClientCertificateSecretName(componentame string) string
- func GetComponentSecretName(componentName string) string
- func GetDeploymentName(appName, env, tag string) string
- func GetEnvironmentNamespace(appName, environment string) string
- func GetGithubCloneURLFromRepo(repo string) string
- func GetGithubRepositoryURLFromCloneURL(cloneURL string) string
- func GetImagePath(containerRegistry, appName, componentName, imageTag string) string
- func GetKubernetesClient() (kubernetes.Interface, radixclient.Interface, monitoring.Interface, ...)
- func GetPersistentVolumeClaimMap(pvcList *[]corev1.PersistentVolumeClaim) map[string]*corev1.PersistentVolumeClaim
- func GetPodSpecAffinity(node *v1.RadixNode) *corev1.Affinity
- func GetPodSpecTolerations(node *v1.RadixNode) []corev1.Toleration
- func GetRadixApplicationFromFile(filename string) (*v1.RadixApplication, error)
- func GetRadixDeployFromFile(filename string) (*v1.RadixDeployment, error)
- func GetRadixEnvironmentFromFile(filename string) (*v1.RadixEnvironment, error)
- func GetRadixRegistrationFromFile(filename string) (*v1.RadixRegistration, error)
- func GetResourceRequirements(deployComponent v1.RadixCommonDeployComponent) corev1.ResourceRequirements
- func GetStorageClassMap(scList *[]storagev1.StorageClass) map[string]*storagev1.StorageClass
- func IsRadixEnvVar(envVarName string) bool
- func NewEnvironmentVariablesSet() *environmentVariablesSet
- func RandString(length int) string
- func RandStringSeed(length int, src rand.Source) string
- func RandStringStrSeed(length int, src string) string
- func ShortenString(s string, charsToCut int) string
- func StringPtr(s string) *string
- func TernaryString(condition bool, trueValue, falseValue string) string
- type ApplicationBuilder
- type ApplicationBuilderStruct
- func (ap *ApplicationBuilderStruct) BuildRA() *v1.RadixApplication
- func (ap *ApplicationBuilderStruct) GetRegistrationBuilder() RegistrationBuilder
- func (ap *ApplicationBuilderStruct) WithAppName(appName string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithBuildSecrets(buildSecrets ...string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithComponent(component RadixApplicationComponentBuilder) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithComponents(components ...RadixApplicationComponentBuilder) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithDNSAppAlias(env string, component string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithDNSExternalAlias(alias, env, component string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithEnvironment(environment, buildFrom string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithEnvironmentNoBranch(environment string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithJobComponent(component RadixApplicationJobComponentBuilder) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithJobComponents(components ...RadixApplicationJobComponentBuilder) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithPrivateImageRegistry(server, username, email string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithRadixRegistration(registrationBuilder RegistrationBuilder) ApplicationBuilder
- type DeployCommonComponentBuilder
- type DeployComponentBuilder
- type DeployJobComponentBuilder
- type DeploymentBuilder
- type DeploymentBuilderStruct
- func (db *DeploymentBuilderStruct) BuildRD() *v1.RadixDeployment
- func (db *DeploymentBuilderStruct) GetApplicationBuilder() ApplicationBuilder
- func (db *DeploymentBuilderStruct) WithActiveFrom(activeFrom time.Time) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithActiveTo(activeTo time.Time) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithAppName(appName string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithComponent(component DeployComponentBuilder) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithComponents(components ...DeployComponentBuilder) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithCondition(condition v1.RadixDeployCondition) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithCreated(created time.Time) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithDeploymentName(name string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithEmptyStatus() DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithEnvironment(environment string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithImageTag(imageTag string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithJobComponent(component DeployJobComponentBuilder) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithJobComponents(components ...DeployJobComponentBuilder) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithLabel(label, value string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithRadixApplication(applicationBuilder ApplicationBuilder) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithRadixDeployment(radixDeployment *v1.RadixDeployment) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithUID(uid types.UID) DeploymentBuilder
- type EnvironmentBuilder
- type EnvironmentBuilderStruct
- func (eb *EnvironmentBuilderStruct) BuildRE() *rx.RadixEnvironment
- func (eb *EnvironmentBuilderStruct) GetRegistrationBuilder() RegistrationBuilder
- func (eb *EnvironmentBuilderStruct) WithAppLabel() EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithAppName(appName string) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithCreatedTime(created time.Time) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithEgressConfig(egress rx.EgressConfig) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithEnvironmentName(name string) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithLabel(label, value string) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithOrphaned(isOrphan bool) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithOwner(owner meta.OwnerReference) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithReconciledTime(reconciled time.Time) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithRegistrationBuilder(builder RegistrationBuilder) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithRegistrationOwner(registration *rx.RadixRegistration) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithResourceVersion(version string) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithUID(uid types.UID) EnvironmentBuilder
- type JobBuilder
- type JobBuilderStruct
- func (jb *JobBuilderStruct) BuildRJ() *v1.RadixJob
- func (jb *JobBuilderStruct) GetApplicationBuilder() ApplicationBuilder
- func (jb *JobBuilderStruct) WithAppName(name string) JobBuilder
- func (jb *JobBuilderStruct) WithBranch(branch string) JobBuilder
- func (jb *JobBuilderStruct) WithCreated(created time.Time) JobBuilder
- func (jb *JobBuilderStruct) WithDeploymentName(deploymentName string) JobBuilder
- func (jb *JobBuilderStruct) WithEmptyStatus() JobBuilder
- func (jb *JobBuilderStruct) WithJobName(name string) JobBuilder
- func (jb *JobBuilderStruct) WithPipeline(pipeline v1.RadixPipelineType) JobBuilder
- func (jb *JobBuilderStruct) WithRadixApplication(applicationBuilder ApplicationBuilder) JobBuilder
- func (jb *JobBuilderStruct) WithStatus(jobStatus JobStatusBuilder) JobBuilder
- func (jb *JobBuilderStruct) WithStatusOnAnnotation(jobStatus JobStatusBuilder) JobBuilder
- type JobStatusBuilder
- type JobStepBuilder
- type RadixApplicationComponentBuilder
- type RadixApplicationJobComponentBuilder
- type RadixEnvironmentConfigBuilder
- type RadixJobComponentEnvironmentConfigBuilder
- type RegistrationBuilder
- type RegistrationBuilderStruct
- func (rb *RegistrationBuilderStruct) BuildRR() *v1.RadixRegistration
- func (rb *RegistrationBuilderStruct) WithAdGroups(adGroups []string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithCloneURL(cloneURL string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithConfigBranch(configBranch string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithCreator(creator string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithEmptyStatus() RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithMachineUser(machineUser bool) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithName(name string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithOwner(owner string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithPrivateKey(privateKey string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithPublicKey(publicKey string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithRadixRegistration(radixRegistration *v1.RadixRegistration) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithRepository(repository string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithSharedSecret(sharedSecret string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithUID(uid types.UID) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithWBS(wbs string) RegistrationBuilder
Constants ¶
const AppNamespaceEnvName = "app"
AppNamespaceEnvName Name of environment for app namespace
Variables ¶
This section is empty.
Functions ¶
func BuildResourceRequirement ¶ added in v1.12.2
func BuildResourceRequirement(source *v1.ResourceRequirements) corev1.ResourceRequirements
func EqualPvcLists ¶ added in v1.13.7
func EqualPvcLists(pvcList1, pvcList2 *[]corev1.PersistentVolumeClaim, ignoreRandomPostfixInName bool) (bool, error)
EqualPvcLists Compare two PersistentVolumeClaim lists. When ignoreRandomPostfixInName=true - last 6 chars of the name (e.g.'-abc12') are ignored during comparison
func EqualPvcs ¶ added in v1.13.7
func EqualPvcs(pvc1 *corev1.PersistentVolumeClaim, pvc2 *corev1.PersistentVolumeClaim, ignoreRandomPostfixInName bool) (bool, error)
EqualPvcs Compare two PersistentVolumeClaim pointers
func EqualStorageClassLists ¶ added in v1.13.7
func EqualStorageClassLists(scList1, scList2 *[]storagev1.StorageClass) (bool, error)
EqualStorageClassLists Compare two StorageClass lists
func EqualStorageClasses ¶ added in v1.13.7
func EqualStorageClasses(sc1, sc2 *storagev1.StorageClass) (bool, error)
EqualStorageClasses Compare two StorageClass pointers
func EqualStringLists ¶ added in v1.13.7
EqualStringLists Compare two string lists
func EqualStringMaps ¶ added in v1.13.7
EqualStringMaps Compare two string maps
func EqualStringsAsPtr ¶ added in v1.13.7
func GetAppAndTagPairFromName ¶
GetAppAndTagPairFromName Reverse engineer deployment name
func GetAppNamespace ¶
GetAppNamespace Function to get namespace from app name
func GetAuxiliaryComponentDeploymentName ¶ added in v1.18.0
GetAuxiliaryComponentDeploymentName returns deployment name for auxiliary component, e.g. the oauth proxy
func GetAuxiliaryComponentSecretName ¶ added in v1.18.0
func GetAuxiliaryComponentServiceName ¶ added in v1.18.0
GetAuxiliaryComponentServiceName returns service name for auxiliary component, e.g. the oauth proxy
func GetComponentClientCertificateSecretName ¶ added in v1.12.0
GetComponentClientCertificateSecretName Gets name of the component secret that holds the ca.crt public key for client certificate authentication
func GetComponentSecretName ¶
GetComponentSecretName Gets unique name of the component secret
func GetDeploymentName ¶
GetDeploymentName Function to get deployment name
func GetEnvironmentNamespace ¶
GetEnvironmentNamespace Function to get namespace from app name and environment
func GetGithubCloneURLFromRepo ¶
GetGithubCloneURLFromRepo Takes a https repo string as input and converts to a git clone url
func GetGithubRepositoryURLFromCloneURL ¶
GetGithubRepositoryURLFromCloneURL Takes git clone url as input and converts to a https repo string
func GetImagePath ¶
GetImagePath Returns a container image path given container registry, app, component and tag
func GetKubernetesClient ¶
func GetKubernetesClient() (kubernetes.Interface, radixclient.Interface, monitoring.Interface, secretProviderClient.Interface)
GetKubernetesClient Gets clients to talk to the API
func GetPersistentVolumeClaimMap ¶ added in v1.13.7
func GetPersistentVolumeClaimMap(pvcList *[]corev1.PersistentVolumeClaim) map[string]*corev1.PersistentVolumeClaim
GetPersistentVolumeClaimMap Get map from PersistentVolumeClaim with name as key
func GetPodSpecAffinity ¶ added in v1.11.2
func GetPodSpecTolerations ¶ added in v1.19.1
func GetPodSpecTolerations(node *v1.RadixNode) []corev1.Toleration
GetPodSpecTolerations returns tolerations required to schedule the pod on nodes defined by RadixNode
func GetRadixApplicationFromFile ¶ added in v1.7.8
func GetRadixApplicationFromFile(filename string) (*v1.RadixApplication, error)
GetRadixApplicationFromFile Reads radix config from file
func GetRadixDeployFromFile ¶ added in v1.7.8
func GetRadixDeployFromFile(filename string) (*v1.RadixDeployment, error)
GetRadixDeployFromFile Reads radix deployment from file
func GetRadixEnvironmentFromFile ¶ added in v1.7.8
func GetRadixEnvironmentFromFile(filename string) (*v1.RadixEnvironment, error)
GetRadixEnvironmentFromFile reads RadixEnvironment configuration from a yaml file
func GetRadixRegistrationFromFile ¶
func GetRadixRegistrationFromFile(filename string) (*v1.RadixRegistration, error)
GetRadixRegistrationFromFile Reads radix registration from file
func GetResourceRequirements ¶ added in v1.8.16
func GetResourceRequirements(deployComponent v1.RadixCommonDeployComponent) corev1.ResourceRequirements
func GetStorageClassMap ¶ added in v1.13.7
func GetStorageClassMap(scList *[]storagev1.StorageClass) map[string]*storagev1.StorageClass
GetStorageClassMap Get map from StorageClassList with name as key
func IsRadixEnvVar ¶ added in v1.15.0
IsRadixEnvVar Indicates if environment-variable is created by Radix
func NewEnvironmentVariablesSet ¶ added in v1.13.6
func NewEnvironmentVariablesSet() *environmentVariablesSet
NewEnvironmentVariablesSet Create new EnvironmentVariablesSet
func RandString ¶
RandString Returns a random string of given length
func RandStringSeed ¶
RandStringSeed Returns a random string of given length from seed
func RandStringStrSeed ¶
RandStringStrSeed Returns a random string of given length from seed
func ShortenString ¶ added in v1.13.7
func TernaryString ¶ added in v1.5.17
TernaryString operator
Types ¶
type ApplicationBuilder ¶
type ApplicationBuilder interface { WithRadixRegistration(RegistrationBuilder) ApplicationBuilder WithAppName(string) ApplicationBuilder WithBuildSecrets(...string) ApplicationBuilder WithEnvironment(string, string) ApplicationBuilder WithEnvironmentNoBranch(string) ApplicationBuilder WithComponent(RadixApplicationComponentBuilder) ApplicationBuilder WithComponents(...RadixApplicationComponentBuilder) ApplicationBuilder WithJobComponent(RadixApplicationJobComponentBuilder) ApplicationBuilder WithJobComponents(...RadixApplicationJobComponentBuilder) ApplicationBuilder WithDNSAppAlias(string, string) ApplicationBuilder WithDNSExternalAlias(string, string, string) ApplicationBuilder WithPrivateImageRegistry(string, string, string) ApplicationBuilder GetRegistrationBuilder() RegistrationBuilder BuildRA() *v1.RadixApplication }
ApplicationBuilder Handles construction of RA
func ARadixApplication ¶
func ARadixApplication() ApplicationBuilder
ARadixApplication Constructor for application builder containing test data
func NewRadixApplicationBuilder ¶
func NewRadixApplicationBuilder() ApplicationBuilder
NewRadixApplicationBuilder Constructor for config builder
type ApplicationBuilderStruct ¶
type ApplicationBuilderStruct struct {
// contains filtered or unexported fields
}
ApplicationBuilderStruct Instance variables
func (*ApplicationBuilderStruct) BuildRA ¶
func (ap *ApplicationBuilderStruct) BuildRA() *v1.RadixApplication
BuildRA Builds RA
func (*ApplicationBuilderStruct) GetRegistrationBuilder ¶
func (ap *ApplicationBuilderStruct) GetRegistrationBuilder() RegistrationBuilder
GetRegistrationBuilder Gets associated registration builder
func (*ApplicationBuilderStruct) WithAppName ¶
func (ap *ApplicationBuilderStruct) WithAppName(appName string) ApplicationBuilder
WithAppName Sets app name
func (*ApplicationBuilderStruct) WithBuildSecrets ¶ added in v1.3.0
func (ap *ApplicationBuilderStruct) WithBuildSecrets(buildSecrets ...string) ApplicationBuilder
WithBuildSecrets Appends to build secrets
func (*ApplicationBuilderStruct) WithComponent ¶
func (ap *ApplicationBuilderStruct) WithComponent(component RadixApplicationComponentBuilder) ApplicationBuilder
WithComponent Appends application component to list of existing components
func (*ApplicationBuilderStruct) WithComponents ¶
func (ap *ApplicationBuilderStruct) WithComponents(components ...RadixApplicationComponentBuilder) ApplicationBuilder
WithComponents Sets application components to application
func (*ApplicationBuilderStruct) WithDNSAppAlias ¶
func (ap *ApplicationBuilderStruct) WithDNSAppAlias(env string, component string) ApplicationBuilder
WithDNSAppAlias Sets env + component to be the app alias
func (*ApplicationBuilderStruct) WithDNSExternalAlias ¶
func (ap *ApplicationBuilderStruct) WithDNSExternalAlias(alias, env, component string) ApplicationBuilder
WithDNSExternalAlias Sets env + component to the the external alias
func (*ApplicationBuilderStruct) WithEnvironment ¶
func (ap *ApplicationBuilderStruct) WithEnvironment(environment, buildFrom string) ApplicationBuilder
WithEnvironment Appends to environment-build list
func (*ApplicationBuilderStruct) WithEnvironmentNoBranch ¶
func (ap *ApplicationBuilderStruct) WithEnvironmentNoBranch(environment string) ApplicationBuilder
WithEnvironmentNoBranch Appends environment with no branch mapping to config
func (*ApplicationBuilderStruct) WithJobComponent ¶ added in v1.8.0
func (ap *ApplicationBuilderStruct) WithJobComponent(component RadixApplicationJobComponentBuilder) ApplicationBuilder
WithJobComponent Appends application job component to list of existing components
func (*ApplicationBuilderStruct) WithJobComponents ¶ added in v1.8.0
func (ap *ApplicationBuilderStruct) WithJobComponents(components ...RadixApplicationJobComponentBuilder) ApplicationBuilder
WithJobComponents Sets application job components to application
func (*ApplicationBuilderStruct) WithPrivateImageRegistry ¶ added in v1.0.1
func (ap *ApplicationBuilderStruct) WithPrivateImageRegistry(server, username, email string) ApplicationBuilder
WithPrivateImageRegistry adds a private image hub to application
func (*ApplicationBuilderStruct) WithRadixRegistration ¶
func (ap *ApplicationBuilderStruct) WithRadixRegistration(registrationBuilder RegistrationBuilder) ApplicationBuilder
WithRadixRegistration Associates this builder with a registration builder
type DeployCommonComponentBuilder ¶ added in v1.13.7
type DeployCommonComponentBuilder interface { WithName(string) DeployCommonComponentBuilder WithVolumeMounts([]v1.RadixVolumeMount) DeployCommonComponentBuilder BuildComponent() v1.RadixCommonDeployComponent }
DeployCommonComponentBuilder Handles construction of v1.RadixCommonDeployComponent builder
func NewDeployCommonComponentBuilder ¶ added in v1.13.7
func NewDeployCommonComponentBuilder(factory v1.RadixCommonDeployComponentFactory) DeployCommonComponentBuilder
NewDeployCommonComponentBuilder Constructor for component builder
type DeployComponentBuilder ¶
type DeployComponentBuilder interface { WithName(string) DeployComponentBuilder WithImage(string) DeployComponentBuilder WithPort(string, int32) DeployComponentBuilder WithPorts([]v1.ComponentPort) DeployComponentBuilder WithEnvironmentVariable(string, string) DeployComponentBuilder WithEnvironmentVariables(map[string]string) DeployComponentBuilder WithPublic(bool) DeployComponentBuilder // Deprecated: For backwards compatibility WithPublic is still supported, new code should use WithPublicPort instead WithPublicPort(string) DeployComponentBuilder WithMonitoring(bool) DeployComponentBuilder WithMonitoringConfig(v1.MonitoringConfig) DeployComponentBuilder WithAlwaysPullImageOnDeploy(bool) DeployComponentBuilder WithReplicas(*int) DeployComponentBuilder WithResourceRequestsOnly(map[string]string) DeployComponentBuilder WithResource(map[string]string, map[string]string) DeployComponentBuilder WithVolumeMounts([]v1.RadixVolumeMount) DeployComponentBuilder WithNodeGpu(gpu string) DeployComponentBuilder WithNodeGpuCount(gpuCount string) DeployComponentBuilder WithIngressConfiguration(...string) DeployComponentBuilder WithSecrets([]string) DeployComponentBuilder WithSecretRefs(v1.RadixSecretRefs) DeployComponentBuilder WithDNSAppAlias(bool) DeployComponentBuilder WithDNSExternalAlias(string) DeployComponentBuilder WithHorizontalScaling(*int32, int32) DeployComponentBuilder WithRunAsNonRoot(bool) DeployComponentBuilder WithAuthentication(authentication *v1.Authentication) DeployComponentBuilder BuildComponent() v1.RadixDeployComponent }
DeployComponentBuilder Handles construction of RD component
func NewDeployComponentBuilder ¶
func NewDeployComponentBuilder() DeployComponentBuilder
NewDeployComponentBuilder Constructor for component builder
type DeployJobComponentBuilder ¶ added in v1.8.0
type DeployJobComponentBuilder interface { WithName(string) DeployJobComponentBuilder WithImage(string) DeployJobComponentBuilder WithPort(string, int32) DeployJobComponentBuilder WithPorts([]v1.ComponentPort) DeployJobComponentBuilder WithEnvironmentVariable(string, string) DeployJobComponentBuilder WithEnvironmentVariables(map[string]string) DeployJobComponentBuilder WithMonitoring(bool) DeployJobComponentBuilder WithMonitoringConfig(v1.MonitoringConfig) DeployJobComponentBuilder WithAlwaysPullImageOnDeploy(bool) DeployJobComponentBuilder WithResourceRequestsOnly(map[string]string) DeployJobComponentBuilder WithResource(map[string]string, map[string]string) DeployJobComponentBuilder WithVolumeMounts([]v1.RadixVolumeMount) DeployJobComponentBuilder WithNodeGpu(gpu string) DeployJobComponentBuilder WithNodeGpuCount(gpuCount string) DeployJobComponentBuilder WithSecrets([]string) DeployJobComponentBuilder WithSecretRefs(v1.RadixSecretRefs) DeployJobComponentBuilder WithSchedulerPort(*int32) DeployJobComponentBuilder WithPayloadPath(*string) DeployJobComponentBuilder WithRunAsNonRoot(bool) DeployJobComponentBuilder BuildJobComponent() v1.RadixDeployJobComponent }
DeployJobComponentBuilder Handles construction of RD job component
func NewDeployJobComponentBuilder ¶ added in v1.8.0
func NewDeployJobComponentBuilder() DeployJobComponentBuilder
NewDeployJobComponentBuilder Constructor for jop component builder
type DeploymentBuilder ¶
type DeploymentBuilder interface { WithRadixApplication(ApplicationBuilder) DeploymentBuilder WithRadixDeployment(*v1.RadixDeployment) DeploymentBuilder WithDeploymentName(string) DeploymentBuilder WithImageTag(string) DeploymentBuilder WithAppName(string) DeploymentBuilder WithLabel(label, value string) DeploymentBuilder WithEnvironment(string) DeploymentBuilder WithCreated(time.Time) DeploymentBuilder WithUID(types.UID) DeploymentBuilder WithCondition(v1.RadixDeployCondition) DeploymentBuilder WithActiveFrom(time.Time) DeploymentBuilder WithActiveTo(time.Time) DeploymentBuilder WithEmptyStatus() DeploymentBuilder WithComponent(DeployComponentBuilder) DeploymentBuilder WithComponents(...DeployComponentBuilder) DeploymentBuilder WithJobComponent(DeployJobComponentBuilder) DeploymentBuilder WithJobComponents(...DeployJobComponentBuilder) DeploymentBuilder GetApplicationBuilder() ApplicationBuilder BuildRD() *v1.RadixDeployment }
DeploymentBuilder Handles construction of RD
func ARadixDeployment ¶
func ARadixDeployment() DeploymentBuilder
ARadixDeployment Constructor for deployment builder containing test data
func NewDeploymentBuilder ¶
func NewDeploymentBuilder() DeploymentBuilder
NewDeploymentBuilder Constructor for deployment builder
type DeploymentBuilderStruct ¶
type DeploymentBuilderStruct struct { DeploymentName string AppName string Labels map[string]string ImageTag string Environment string Created time.Time Condition v1.RadixDeployCondition ActiveFrom metav1.Time ActiveTo metav1.Time ResourceVersion string UID types.UID // contains filtered or unexported fields }
DeploymentBuilderStruct Holds instance variables
func (*DeploymentBuilderStruct) BuildRD ¶
func (db *DeploymentBuilderStruct) BuildRD() *v1.RadixDeployment
BuildRD Builds RD structure based on set variables
func (*DeploymentBuilderStruct) GetApplicationBuilder ¶
func (db *DeploymentBuilderStruct) GetApplicationBuilder() ApplicationBuilder
GetApplicationBuilder Obtains the builder for the corresponding RA, if exists (used for testing)
func (*DeploymentBuilderStruct) WithActiveFrom ¶
func (db *DeploymentBuilderStruct) WithActiveFrom(activeFrom time.Time) DeploymentBuilder
WithActiveFrom Sets active from
func (*DeploymentBuilderStruct) WithActiveTo ¶
func (db *DeploymentBuilderStruct) WithActiveTo(activeTo time.Time) DeploymentBuilder
WithActiveTo Sets active to
func (*DeploymentBuilderStruct) WithAppName ¶
func (db *DeploymentBuilderStruct) WithAppName(appName string) DeploymentBuilder
WithAppName Sets app name
func (*DeploymentBuilderStruct) WithComponent ¶
func (db *DeploymentBuilderStruct) WithComponent(component DeployComponentBuilder) DeploymentBuilder
WithComponent Appends component to list of components
func (*DeploymentBuilderStruct) WithComponents ¶
func (db *DeploymentBuilderStruct) WithComponents(components ...DeployComponentBuilder) DeploymentBuilder
WithComponents Sets list of components
func (*DeploymentBuilderStruct) WithCondition ¶
func (db *DeploymentBuilderStruct) WithCondition(condition v1.RadixDeployCondition) DeploymentBuilder
WithCondition Sets the condition of the deployment
func (*DeploymentBuilderStruct) WithCreated ¶
func (db *DeploymentBuilderStruct) WithCreated(created time.Time) DeploymentBuilder
WithCreated Sets timestamp
func (*DeploymentBuilderStruct) WithDeploymentName ¶
func (db *DeploymentBuilderStruct) WithDeploymentName(name string) DeploymentBuilder
WithDeploymentName Sets name of the deployment
func (*DeploymentBuilderStruct) WithEmptyStatus ¶
func (db *DeploymentBuilderStruct) WithEmptyStatus() DeploymentBuilder
WithEmptyStatus Indicates that the RD has no reconciled status
func (*DeploymentBuilderStruct) WithEnvironment ¶
func (db *DeploymentBuilderStruct) WithEnvironment(environment string) DeploymentBuilder
WithEnvironment Sets environment name
func (*DeploymentBuilderStruct) WithImageTag ¶
func (db *DeploymentBuilderStruct) WithImageTag(imageTag string) DeploymentBuilder
WithImageTag Sets deployment tag to be appended to name
func (*DeploymentBuilderStruct) WithJobComponent ¶ added in v1.8.0
func (db *DeploymentBuilderStruct) WithJobComponent(component DeployJobComponentBuilder) DeploymentBuilder
WithJobComponent Appends job component to list of components
func (*DeploymentBuilderStruct) WithJobComponents ¶ added in v1.8.0
func (db *DeploymentBuilderStruct) WithJobComponents(components ...DeployJobComponentBuilder) DeploymentBuilder
WithJobComponents Sets list of job components
func (*DeploymentBuilderStruct) WithLabel ¶
func (db *DeploymentBuilderStruct) WithLabel(label, value string) DeploymentBuilder
WithLabel Appends label
func (*DeploymentBuilderStruct) WithRadixApplication ¶
func (db *DeploymentBuilderStruct) WithRadixApplication(applicationBuilder ApplicationBuilder) DeploymentBuilder
WithRadixApplication Links to RA builder
func (*DeploymentBuilderStruct) WithRadixDeployment ¶
func (db *DeploymentBuilderStruct) WithRadixDeployment(radixDeployment *v1.RadixDeployment) DeploymentBuilder
WithRadixDeployment Reverse engineers RD
func (*DeploymentBuilderStruct) WithUID ¶
func (db *DeploymentBuilderStruct) WithUID(uid types.UID) DeploymentBuilder
WithUID Sets UUID
type EnvironmentBuilder ¶ added in v1.5.5
type EnvironmentBuilder interface { WithEnvironmentName(string) EnvironmentBuilder WithAppName(string) EnvironmentBuilder WithLabel(label, value string) EnvironmentBuilder WithAppLabel() EnvironmentBuilder WithCreatedTime(time.Time) EnvironmentBuilder WithReconciledTime(time.Time) EnvironmentBuilder WithUID(types.UID) EnvironmentBuilder WithOwner(owner meta.OwnerReference) EnvironmentBuilder WithRegistrationOwner(registration *rx.RadixRegistration) EnvironmentBuilder WithRegistrationBuilder(builder RegistrationBuilder) EnvironmentBuilder WithOrphaned(isOrphan bool) EnvironmentBuilder WithEgressConfig(egressRules rx.EgressConfig) EnvironmentBuilder WithResourceVersion(version string) EnvironmentBuilder GetRegistrationBuilder() RegistrationBuilder BuildRE() *rx.RadixEnvironment }
EnvironmentBuilder Handles construction of RE
func ARadixEnvironment ¶ added in v1.5.5
func ARadixEnvironment() EnvironmentBuilder
ARadixEnvironment constructor for environment builder containing test data
func NewEnvironmentBuilder ¶ added in v1.5.5
func NewEnvironmentBuilder() EnvironmentBuilder
NewEnvironmentBuilder constructor for environment builder
type EnvironmentBuilderStruct ¶ added in v1.5.5
type EnvironmentBuilderStruct struct { EnvironmentName string AppName string EgressConfig rx.EgressConfig Labels map[string]string AppLabel bool CreatedTime *time.Time ReconciledTime *time.Time Owners []meta.OwnerReference ResourceVersion string IsOrphan bool UID types.UID // contains filtered or unexported fields }
EnvironmentBuilderStruct Holds instance variables
func (*EnvironmentBuilderStruct) BuildRE ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) BuildRE() *rx.RadixEnvironment
BuildRE builds RE structure based on set variables
func (*EnvironmentBuilderStruct) GetRegistrationBuilder ¶ added in v1.5.8
func (eb *EnvironmentBuilderStruct) GetRegistrationBuilder() RegistrationBuilder
GetRegistrationBuilder returns its RegistrationBuilder
func (*EnvironmentBuilderStruct) WithAppLabel ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) WithAppLabel() EnvironmentBuilder
WithAppLabel appends "[radix-app]=$AppName" label
func (*EnvironmentBuilderStruct) WithAppName ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) WithAppName(appName string) EnvironmentBuilder
WithAppName sets application name
func (*EnvironmentBuilderStruct) WithCreatedTime ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) WithCreatedTime(created time.Time) EnvironmentBuilder
WithCreatedTime sets created objectmeta timestamp
func (*EnvironmentBuilderStruct) WithEgressConfig ¶ added in v1.20.0
func (eb *EnvironmentBuilderStruct) WithEgressConfig(egress rx.EgressConfig) EnvironmentBuilder
WithEgressConfig sets the egress configuration for this environment
func (*EnvironmentBuilderStruct) WithEnvironmentName ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) WithEnvironmentName(name string) EnvironmentBuilder
WithEnvironmentName sets name of the environment
func (*EnvironmentBuilderStruct) WithLabel ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) WithLabel(label, value string) EnvironmentBuilder
WithLabel appends label
func (*EnvironmentBuilderStruct) WithOrphaned ¶ added in v1.5.11
func (eb *EnvironmentBuilderStruct) WithOrphaned(isOrphan bool) EnvironmentBuilder
WithOrphaned sets the Orphaned status flag
func (*EnvironmentBuilderStruct) WithOwner ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) WithOwner(owner meta.OwnerReference) EnvironmentBuilder
WithOwner appends OwnerReference
func (*EnvironmentBuilderStruct) WithReconciledTime ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) WithReconciledTime(reconciled time.Time) EnvironmentBuilder
WithReconciledTime sets reconciled status timestamp
func (*EnvironmentBuilderStruct) WithRegistrationBuilder ¶ added in v1.5.8
func (eb *EnvironmentBuilderStruct) WithRegistrationBuilder(builder RegistrationBuilder) EnvironmentBuilder
WithRegistrationBuilder builds a RadixRegistration and appends new OwnerReference
func (*EnvironmentBuilderStruct) WithRegistrationOwner ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) WithRegistrationOwner(registration *rx.RadixRegistration) EnvironmentBuilder
WithRegistrationOwner appends new OwnerReference to a RadixRegistration
func (*EnvironmentBuilderStruct) WithResourceVersion ¶ added in v1.5.11
func (eb *EnvironmentBuilderStruct) WithResourceVersion(version string) EnvironmentBuilder
WithResourceVersion sets ResourceVersion objectmeta
func (*EnvironmentBuilderStruct) WithUID ¶ added in v1.5.5
func (eb *EnvironmentBuilderStruct) WithUID(uid types.UID) EnvironmentBuilder
WithUID sets UID
type JobBuilder ¶
type JobBuilder interface { WithRadixApplication(ApplicationBuilder) JobBuilder WithJobName(string) JobBuilder WithAppName(string) JobBuilder WithPipeline(v1.RadixPipelineType) JobBuilder WithBranch(string) JobBuilder WithDeploymentName(string) JobBuilder WithStatusOnAnnotation(JobStatusBuilder) JobBuilder WithEmptyStatus() JobBuilder WithStatus(JobStatusBuilder) JobBuilder WithCreated(time.Time) JobBuilder GetApplicationBuilder() ApplicationBuilder BuildRJ() *v1.RadixJob }
JobBuilder Handles construction of RJ
func ARadixBuildDeployJob ¶
func ARadixBuildDeployJob() JobBuilder
ARadixBuildDeployJob Constructor for radix job builder containing test data
func AStartedBuildDeployJob ¶
func AStartedBuildDeployJob() JobBuilder
AStartedBuildDeployJob Constructor for radix job builder containing test data
type JobBuilderStruct ¶
type JobBuilderStruct struct {
// contains filtered or unexported fields
}
JobBuilderStruct Holds instance variables
func (*JobBuilderStruct) BuildRJ ¶
func (jb *JobBuilderStruct) BuildRJ() *v1.RadixJob
BuildRJ Builds RJ structure based on set variables
func (*JobBuilderStruct) GetApplicationBuilder ¶
func (jb *JobBuilderStruct) GetApplicationBuilder() ApplicationBuilder
GetApplicationBuilder Obtains the builder for the corresponding RA, if exists (used for testing)
func (*JobBuilderStruct) WithAppName ¶
func (jb *JobBuilderStruct) WithAppName(name string) JobBuilder
WithAppName Sets name of the application
func (*JobBuilderStruct) WithBranch ¶
func (jb *JobBuilderStruct) WithBranch(branch string) JobBuilder
WithBranch Sets branch
func (*JobBuilderStruct) WithCreated ¶
func (jb *JobBuilderStruct) WithCreated(created time.Time) JobBuilder
WithCreated Sets timestamp
func (*JobBuilderStruct) WithDeploymentName ¶
func (jb *JobBuilderStruct) WithDeploymentName(deploymentName string) JobBuilder
WithDeploymentName Sets deployment name
func (*JobBuilderStruct) WithEmptyStatus ¶
func (jb *JobBuilderStruct) WithEmptyStatus() JobBuilder
WithEmptyStatus Indicates that the RJ has no reconciled status
func (*JobBuilderStruct) WithJobName ¶
func (jb *JobBuilderStruct) WithJobName(name string) JobBuilder
WithJobName Sets name of the radix job
func (*JobBuilderStruct) WithPipeline ¶
func (jb *JobBuilderStruct) WithPipeline(pipeline v1.RadixPipelineType) JobBuilder
WithPipeline Sets pipeline
func (*JobBuilderStruct) WithRadixApplication ¶
func (jb *JobBuilderStruct) WithRadixApplication(applicationBuilder ApplicationBuilder) JobBuilder
WithRadixApplication Links to RA builder
func (*JobBuilderStruct) WithStatus ¶
func (jb *JobBuilderStruct) WithStatus(jobStatus JobStatusBuilder) JobBuilder
WithStatus Sets status on job
func (*JobBuilderStruct) WithStatusOnAnnotation ¶
func (jb *JobBuilderStruct) WithStatusOnAnnotation(jobStatus JobStatusBuilder) JobBuilder
WithStatusOnAnnotation Emulates velero plugin
type JobStatusBuilder ¶
type JobStatusBuilder interface { WithCondition(v1.RadixJobCondition) JobStatusBuilder WithStarted(time.Time) JobStatusBuilder WithEnded(time.Time) JobStatusBuilder WithSteps(...JobStepBuilder) JobStatusBuilder WithStep(JobStepBuilder) JobStatusBuilder Build() v1.RadixJobStatus }
JobStatusBuilder Handles construction of job status
func ACompletedJobStatus ¶ added in v1.4.0
func ACompletedJobStatus() JobStatusBuilder
ACompletedJobStatus Constructor for a completed job
func AStartedJobStatus ¶
func AStartedJobStatus() JobStatusBuilder
AStartedJobStatus Constructor build-app
func NewJobStatusBuilder ¶
func NewJobStatusBuilder() JobStatusBuilder
NewJobStatusBuilder Constructor for job status builder
type JobStepBuilder ¶
type JobStepBuilder interface { WithCondition(v1.RadixJobCondition) JobStepBuilder WithName(string) JobStepBuilder WithStarted(time.Time) JobStepBuilder WithEnded(time.Time) JobStepBuilder WithComponents(...string) JobStepBuilder WithOutput(*v1.RadixJobStepOutput) JobStepBuilder Build() v1.RadixJobStep }
JobStepBuilder Handles construction of job status step
func ACloneConfigStep ¶
func ACloneConfigStep() JobStepBuilder
ACloneConfigStep Constructor clone-config
func ARadixPipelineStep ¶
func ARadixPipelineStep() JobStepBuilder
ARadixPipelineStep Constructor radix-pipeline
func AScanAppStep ¶ added in v1.14.0
func AScanAppStep() JobStepBuilder
ABuildAppStep Constructor build-app
func NewJobStepBuilder ¶
func NewJobStepBuilder() JobStepBuilder
NewJobStepBuilder Constructor for job step builder
type RadixApplicationComponentBuilder ¶
type RadixApplicationComponentBuilder interface { WithName(string) RadixApplicationComponentBuilder WithAlwaysPullImageOnDeploy(bool) RadixApplicationComponentBuilder WithSourceFolder(string) RadixApplicationComponentBuilder WithDockerfileName(string) RadixApplicationComponentBuilder WithImage(string) RadixApplicationComponentBuilder WithPublic(bool) RadixApplicationComponentBuilder // Deprecated: For backwards comptibility WithPublic is still supported, new code should use WithPublicPort instead WithPublicPort(string) RadixApplicationComponentBuilder WithPort(string, int32) RadixApplicationComponentBuilder WithPorts([]v1.ComponentPort) RadixApplicationComponentBuilder WithSecrets(...string) RadixApplicationComponentBuilder WithSecretRefs(v1.RadixSecretRefs) RadixApplicationComponentBuilder WithMonitoringConfig(v1.MonitoringConfig) RadixApplicationComponentBuilder WithIngressConfiguration(...string) RadixApplicationComponentBuilder WithEnvironmentConfig(RadixEnvironmentConfigBuilder) RadixApplicationComponentBuilder WithEnvironmentConfigs(...RadixEnvironmentConfigBuilder) RadixApplicationComponentBuilder WithCommonEnvironmentVariable(string, string) RadixApplicationComponentBuilder WithCommonResource(map[string]string, map[string]string) RadixApplicationComponentBuilder WithNode(node v1.RadixNode) RadixApplicationComponentBuilder WithAuthentication(authentication *v1.Authentication) RadixApplicationComponentBuilder WithVolumeMounts(volumeMounts []v1.RadixVolumeMount) RadixApplicationComponentBuilder BuildComponent() v1.RadixComponent }
RadixApplicationComponentBuilder Handles construction of RA component
func AnApplicationComponent ¶
func AnApplicationComponent() RadixApplicationComponentBuilder
AnApplicationComponent Constructor for component builder builder containing test data
func NewApplicationComponentBuilder ¶
func NewApplicationComponentBuilder() RadixApplicationComponentBuilder
NewApplicationComponentBuilder Constructor for component builder
type RadixApplicationJobComponentBuilder ¶ added in v1.8.0
type RadixApplicationJobComponentBuilder interface { WithName(string) RadixApplicationJobComponentBuilder WithSourceFolder(string) RadixApplicationJobComponentBuilder WithDockerfileName(string) RadixApplicationJobComponentBuilder WithImage(string) RadixApplicationJobComponentBuilder WithPort(string, int32) RadixApplicationJobComponentBuilder WithSecrets(...string) RadixApplicationJobComponentBuilder WithSecretRefs(v1.RadixSecretRefs) RadixApplicationJobComponentBuilder WithMonitoringConfig(v1.MonitoringConfig) RadixApplicationJobComponentBuilder WithEnvironmentConfig(RadixJobComponentEnvironmentConfigBuilder) RadixApplicationJobComponentBuilder WithEnvironmentConfigs(...RadixJobComponentEnvironmentConfigBuilder) RadixApplicationJobComponentBuilder WithCommonEnvironmentVariable(string, string) RadixApplicationJobComponentBuilder WithCommonResource(map[string]string, map[string]string) RadixApplicationJobComponentBuilder WithSchedulerPort(*int32) RadixApplicationJobComponentBuilder WithPayloadPath(*string) RadixApplicationJobComponentBuilder WithNode(node v1.RadixNode) RadixApplicationJobComponentBuilder WithVolumeMounts(volumeMounts []v1.RadixVolumeMount) RadixApplicationJobComponentBuilder WithTimeLimitSeconds(*int64) RadixApplicationJobComponentBuilder BuildJobComponent() v1.RadixJobComponent }
RadixApplicationJobComponentBuilder Handles construction of RA job component
func AnApplicationJobComponent ¶ added in v1.8.0
func AnApplicationJobComponent() RadixApplicationJobComponentBuilder
AnApplicationJobComponent Constructor for job component builder containing test data
func NewApplicationJobComponentBuilder ¶ added in v1.8.0
func NewApplicationJobComponentBuilder() RadixApplicationJobComponentBuilder
NewApplicationJobComponentBuilder Constructor for job component builder
type RadixEnvironmentConfigBuilder ¶
type RadixEnvironmentConfigBuilder interface { WithEnvironment(string) RadixEnvironmentConfigBuilder WithReplicas(*int) RadixEnvironmentConfigBuilder WithEnvironmentVariable(string, string) RadixEnvironmentConfigBuilder WithResource(map[string]string, map[string]string) RadixEnvironmentConfigBuilder WithVolumeMounts([]v1.RadixVolumeMount) RadixEnvironmentConfigBuilder BuildEnvironmentConfig() v1.RadixEnvironmentConfig WithAlwaysPullImageOnDeploy(bool) RadixEnvironmentConfigBuilder WithMonitoring(bool) RadixEnvironmentConfigBuilder WithRunAsNonRoot(bool) RadixEnvironmentConfigBuilder WithNode(node v1.RadixNode) RadixEnvironmentConfigBuilder WithAuthentication(authentication *v1.Authentication) RadixEnvironmentConfigBuilder WithSecretRefs(secretRefs v1.RadixSecretRefs) RadixEnvironmentConfigBuilder }
RadixEnvironmentConfigBuilder Handles construction of RA component environment
func AnEnvironmentConfig ¶
func AnEnvironmentConfig() RadixEnvironmentConfigBuilder
AnEnvironmentConfig Constructor for component environment builder containing test data
func NewComponentEnvironmentBuilder ¶
func NewComponentEnvironmentBuilder() RadixEnvironmentConfigBuilder
NewComponentEnvironmentBuilder Constructor for component environment builder
type RadixJobComponentEnvironmentConfigBuilder ¶ added in v1.8.0
type RadixJobComponentEnvironmentConfigBuilder interface { WithEnvironment(string) RadixJobComponentEnvironmentConfigBuilder WithEnvironmentVariable(string, string) RadixJobComponentEnvironmentConfigBuilder WithResource(map[string]string, map[string]string) RadixJobComponentEnvironmentConfigBuilder WithVolumeMounts([]v1.RadixVolumeMount) RadixJobComponentEnvironmentConfigBuilder WithMonitoring(bool) RadixJobComponentEnvironmentConfigBuilder WithImageTagName(string) RadixJobComponentEnvironmentConfigBuilder WithNode(node v1.RadixNode) RadixJobComponentEnvironmentConfigBuilder WithRunAsNonRoot(bool) RadixJobComponentEnvironmentConfigBuilder WithTimeLimitSeconds(*int64) RadixJobComponentEnvironmentConfigBuilder WithSecretRefs(secretRefs v1.RadixSecretRefs) RadixJobComponentEnvironmentConfigBuilder BuildEnvironmentConfig() v1.RadixJobComponentEnvironmentConfig }
RadixJobComponentEnvironmentConfigBuilder Handles construction of RA job component environment
func AJobComponentEnvironmentConfig ¶ added in v1.8.0
func AJobComponentEnvironmentConfig() RadixJobComponentEnvironmentConfigBuilder
AJobComponentEnvironmentConfig Constructor for job component environment builder containing test data
func NewJobComponentEnvironmentBuilder ¶ added in v1.8.0
func NewJobComponentEnvironmentBuilder() RadixJobComponentEnvironmentConfigBuilder
NewJobComponentEnvironmentBuilder Constructor for job component environment builder
type RegistrationBuilder ¶
type RegistrationBuilder interface { WithUID(types.UID) RegistrationBuilder WithName(name string) RegistrationBuilder WithRepository(string) RegistrationBuilder WithAdGroups([]string) RegistrationBuilder WithPublicKey(string) RegistrationBuilder WithPrivateKey(string) RegistrationBuilder WithCloneURL(string) RegistrationBuilder WithOwner(string) RegistrationBuilder WithCreator(string) RegistrationBuilder WithEmptyStatus() RegistrationBuilder WithMachineUser(bool) RegistrationBuilder WithWBS(string) RegistrationBuilder WithConfigBranch(string) RegistrationBuilder WithRadixRegistration(*v1.RadixRegistration) RegistrationBuilder BuildRR() *v1.RadixRegistration }
RegistrationBuilder Handles construction of RR or applicationRegistation
func ARadixRegistration ¶
func ARadixRegistration() RegistrationBuilder
ARadixRegistration Constructor for registration builder containing test data
func NewRegistrationBuilder ¶
func NewRegistrationBuilder() RegistrationBuilder
NewRegistrationBuilder Constructor for registration builder
type RegistrationBuilderStruct ¶
type RegistrationBuilderStruct struct {
// contains filtered or unexported fields
}
RegistrationBuilderStruct Instance variables
func (*RegistrationBuilderStruct) BuildRR ¶
func (rb *RegistrationBuilderStruct) BuildRR() *v1.RadixRegistration
BuildRR Builds the radix registration
func (*RegistrationBuilderStruct) WithAdGroups ¶
func (rb *RegistrationBuilderStruct) WithAdGroups(adGroups []string) RegistrationBuilder
WithAdGroups Sets ad group
func (*RegistrationBuilderStruct) WithCloneURL ¶
func (rb *RegistrationBuilderStruct) WithCloneURL(cloneURL string) RegistrationBuilder
WithCloneURL Sets clone url
func (*RegistrationBuilderStruct) WithConfigBranch ¶ added in v1.6.0
func (rb *RegistrationBuilderStruct) WithConfigBranch(configBranch string) RegistrationBuilder
WithConfigBranch Sets ConfigBranch
func (*RegistrationBuilderStruct) WithCreator ¶ added in v1.3.2
func (rb *RegistrationBuilderStruct) WithCreator(creator string) RegistrationBuilder
WithCreator set creator
func (*RegistrationBuilderStruct) WithEmptyStatus ¶ added in v1.4.1
func (rb *RegistrationBuilderStruct) WithEmptyStatus() RegistrationBuilder
WithEmptyStatus Indicates that the RR has no reconciled status
func (*RegistrationBuilderStruct) WithMachineUser ¶ added in v1.5.0
func (rb *RegistrationBuilderStruct) WithMachineUser(machineUser bool) RegistrationBuilder
WithMachineUser Indicates that a machine user service account should be created for this application
func (*RegistrationBuilderStruct) WithName ¶
func (rb *RegistrationBuilderStruct) WithName(name string) RegistrationBuilder
WithName Sets name
func (*RegistrationBuilderStruct) WithOwner ¶ added in v1.3.2
func (rb *RegistrationBuilderStruct) WithOwner(owner string) RegistrationBuilder
WithOwner set owner
func (*RegistrationBuilderStruct) WithPrivateKey ¶
func (rb *RegistrationBuilderStruct) WithPrivateKey(privateKey string) RegistrationBuilder
WithPrivateKey Sets private key
func (*RegistrationBuilderStruct) WithPublicKey ¶
func (rb *RegistrationBuilderStruct) WithPublicKey(publicKey string) RegistrationBuilder
WithPublicKey Sets public key
func (*RegistrationBuilderStruct) WithRadixRegistration ¶
func (rb *RegistrationBuilderStruct) WithRadixRegistration(radixRegistration *v1.RadixRegistration) RegistrationBuilder
WithRadixRegistration Re-enginers a builder from a registration
func (*RegistrationBuilderStruct) WithRepository ¶
func (rb *RegistrationBuilderStruct) WithRepository(repository string) RegistrationBuilder
WithRepository Sets repository
func (*RegistrationBuilderStruct) WithSharedSecret ¶
func (rb *RegistrationBuilderStruct) WithSharedSecret(sharedSecret string) RegistrationBuilder
WithSharedSecret Sets shared secret
func (*RegistrationBuilderStruct) WithUID ¶
func (rb *RegistrationBuilderStruct) WithUID(uid types.UID) RegistrationBuilder
WithUID Sets UID
func (*RegistrationBuilderStruct) WithWBS ¶ added in v1.5.15
func (rb *RegistrationBuilderStruct) WithWBS(wbs string) RegistrationBuilder
WithWBS Sets WBS
Source Files ¶
- affinity.go
- application_builder.go
- applicationcomponent_builder.go
- applicationjobcomponent_builder.go
- bools.go
- componentenvironment_builder.go
- deployment_builder.go
- deploymentcommoncomponent_builder.go
- deploymentcomponent_builder.go
- deploymentjobcomponent_builder.go
- deployments.go
- environment_builder.go
- environment_variables.go
- environmentvariables_set.go
- filereader.go
- imageutil.go
- init.go
- job_builder.go
- jobcomponentenvironment_builder.go
- namespaces.go
- persistentvolumeclaim.go
- random.go
- registration_builder.go
- resources.go
- secrets.go
- services.go
- storageclass.go
- strings.go
- tolerations.go