Documentation ¶
Index ¶
- Constants
- func BuildResourceRequirement(source *v1.ResourceRequirements) (corev1.ResourceRequirements, error)
- 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 GetAdGroups(registration *v1.RadixRegistration) ([]string, error)
- func GetAffinityForBatchJob(job *radixv1.RadixDeployJobComponent, node *radixv1.RadixNode) *corev1.Affinity
- func GetAffinityForDeployComponent(component radixv1.RadixCommonDeployComponent, appName string, ...) *corev1.Affinity
- func GetAffinityForJobAPIAuxComponent() *corev1.Affinity
- func GetAffinityForOAuthAuxComponent() *corev1.Affinity
- func GetAffinityForPipelineJob(runtime *radixv1.Runtime) *corev1.Affinity
- func GetAppAdminRbacSubjects(rr *v1.RadixRegistration) ([]rbacv1.Subject, error)
- func GetAppAndTagPairFromName(name string) (string, string)
- func GetAppNamespace(appName string) string
- func GetArchitectureFromRuntime(runtime *radixv1.Runtime) 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 GetComponentServiceAccountName(componentName string) string
- func GetDeploymentName(appName, env, tag string) string
- func GetDeploymentPodSpecTolerations(node *v1.RadixNode) []corev1.Toleration
- func GetEnvVarsFromAzureKeyVaultSecretRefs(radixDeploymentName, componentName string, secretRefs radixv1.RadixSecretRefs) []corev1.EnvVar
- func GetEnvVarsFromSecrets(componentName string, secretNames []string) []corev1.EnvVar
- func GetEnvironmentNamespace(appName, environment string) string
- func GetExternalDnsTlsSecretName(externalDns radixv1.RadixDeployExternalDNS) string
- func GetGithubCloneURLFromRepo(repo string) string
- func GetGithubRepositoryURLFromCloneURL(cloneURL string) string
- func GetImageCachePath(containerRegistry, appName string) string
- func GetImagePath(containerRegistry, appName, componentName, imageTag string) string
- func GetKubernetesClient(ctx context.Context, configOptions ...KubernetesClientConfigOption) (kubernetes.Interface, radixclient.Interface, kedav2.Interface, ...)
- func GetNodeGPUCount(gpuCount string) (*int, error)
- func GetNodeGPULists(gpu string) ([]string, []string)
- func GetPDBConfig(componentName string, namespace string) *v1.PodDisruptionBudget
- func GetPDBName(componentName string) string
- func GetPersistentVolumeClaimMap(pvcList *[]corev1.PersistentVolumeClaim) map[string]*corev1.PersistentVolumeClaim
- func GetPipelineJobPodSpecTolerations() []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 GetRepositoryName(appName, componentName string) string
- func GetResourceRequirements(deployComponent v1.RadixCommonDeployComponent) (corev1.ResourceRequirements, error)
- func GetScheduledJobPodSpecTolerations(node *v1.RadixNode) []corev1.Toleration
- func GetServicePorts(componentPorts []radixv1.ComponentPort) []corev1.ServicePort
- func GetStorageClassMap(scList *[]storagev1.StorageClass) map[string]*storagev1.StorageClass
- func GetSubPipelineServiceAccountName(environmentName string) string
- func GetTriggerAuthenticationName(componentName, triggerName string) string
- func GrantAppAdminAccessToSecret(ctx context.Context, kubeutil *kube.Kube, ...) error
- func GrantAppReaderAccessToSecret(ctx context.Context, kubeutil *kube.Kube, ...) error
- func IsRadixEnvVar(envVarName string) bool
- func NewEnvironmentVariablesSet() *environmentVariablesSet
- func PollUntilRESTClientSuccessfulConnection[T interface{ ... }](ctx context.Context, timeout time.Duration, interval time.Duration, ...) (T, error)
- 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
- func UseGPUNode(node *radixv1.RadixNode) bool
- type ApplicationBuilder
- type ApplicationBuilderStruct
- func (ap *ApplicationBuilderStruct) BuildRA() *radixv1.RadixApplication
- func (ap *ApplicationBuilderStruct) GetRegistrationBuilder() RegistrationBuilder
- func (ap *ApplicationBuilderStruct) WithAppName(appName string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithApplicationEnvironmentBuilders(environmentBuilders ...ApplicationEnvironmentBuilder) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithBuildCache(useBuildCache *bool) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithBuildKit(useBuildKit *bool) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithBuildSecrets(buildSecrets ...string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithBuildVariables(buildVariables radixv1.EnvVarsMap) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithComponent(component RadixApplicationComponentBuilder) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithComponents(components ...RadixApplicationComponentBuilder) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithDNSAlias(dnsAliases ...radixv1.DNSAlias) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithDNSAppAlias(env, component string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithDNSExternalAlias(alias, env, component string, useCertificateAutomation bool) 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
- func (ap *ApplicationBuilderStruct) WithSubPipeline(subPipelineBuilder SubPipelineBuilder) ApplicationBuilder
- type ApplicationEnvironmentBuilder
- type DeployCommonComponentBuilder
- type DeployComponentBuilder
- type DeployJobComponentBuilder
- type DeployKey
- 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) WithAnnotations(annotations map[string]string) 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) WithJobName(name string) 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() *radixv1.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 radixv1.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 *radixv1.RadixRegistration) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithResourceVersion(version string) EnvironmentBuilder
- func (eb *EnvironmentBuilderStruct) WithUID(uid types.UID) EnvironmentBuilder
- type HorizontalScalingBuilderStruct
- func (h *HorizontalScalingBuilderStruct) Build() *radixv1.RadixHorizontalScaling
- func (h *HorizontalScalingBuilderStruct) WithAzureServiceBusTrigger(namespace, clientId, queueName, topicName, subscriptionName string, ...) *HorizontalScalingBuilderStruct
- func (h *HorizontalScalingBuilderStruct) WithCPUTrigger(value int) *HorizontalScalingBuilderStruct
- func (h *HorizontalScalingBuilderStruct) WithCRONTrigger(start, end, timezone string, desiredReplicas int) *HorizontalScalingBuilderStruct
- func (h *HorizontalScalingBuilderStruct) WithCooldownPeriod(cooldown int32) *HorizontalScalingBuilderStruct
- func (h *HorizontalScalingBuilderStruct) WithMaxReplicas(maxReplicas int32) *HorizontalScalingBuilderStruct
- func (h *HorizontalScalingBuilderStruct) WithMemoryTrigger(value int) *HorizontalScalingBuilderStruct
- func (h *HorizontalScalingBuilderStruct) WithMinReplicas(minReplicas int32) *HorizontalScalingBuilderStruct
- func (h *HorizontalScalingBuilderStruct) WithPollingInterval(pollingInterval int32) *HorizontalScalingBuilderStruct
- func (h *HorizontalScalingBuilderStruct) WithTrigger(trigger radixv1.RadixHorizontalScalingTrigger) *HorizontalScalingBuilderStruct
- 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) WithCommitID(commitID 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) WithFromEnvironment(envName string) JobBuilder
- func (jb *JobBuilderStruct) WithImageTag(imageTag string) JobBuilder
- func (jb *JobBuilderStruct) WithJobName(name string) JobBuilder
- func (jb *JobBuilderStruct) WithPipelineImageTag(imageTag string) JobBuilder
- func (jb *JobBuilderStruct) WithPipelineType(pipeline v1.RadixPipelineType) JobBuilder
- func (jb *JobBuilderStruct) WithPushImage(push bool) JobBuilder
- func (jb *JobBuilderStruct) WithRadixApplication(applicationBuilder ApplicationBuilder) JobBuilder
- func (jb *JobBuilderStruct) WithStatus(jobStatus JobStatusBuilder) JobBuilder
- func (jb *JobBuilderStruct) WithStatusOnAnnotation(jobStatus JobStatusBuilder) JobBuilder
- func (jb *JobBuilderStruct) WithTektonImageTag(imageTag string) JobBuilder
- func (jb *JobBuilderStruct) WithToEnvironment(envName string) JobBuilder
- type JobStatusBuilder
- type JobStepBuilder
- type KubernetesClientConfigOption
- 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) WithConfigurationItem(ci string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithCreator(creator string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithEmptyStatus() 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) WithRadixConfigFullName(fullName string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithRadixRegistration(radixRegistration *v1.RadixRegistration) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithReaderAdGroups(readerAdGroups []string) 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
- type SubPipelineBuilder
- type ZerologWarningHandlerAdapter
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, error)
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 GetAdGroups ¶ added in v1.36.2
func GetAdGroups(registration *v1.RadixRegistration) ([]string, error)
GetAdGroups Gets ad-groups from registration. If missing, gives default for cluster
func GetAffinityForBatchJob ¶ added in v1.55.1
func GetAffinityForBatchJob(job *radixv1.RadixDeployJobComponent, node *radixv1.RadixNode) *corev1.Affinity
GetAffinityForBatchJob Gets batch job pod specific affinity
func GetAffinityForDeployComponent ¶ added in v1.55.1
func GetAffinityForDeployComponent(component radixv1.RadixCommonDeployComponent, appName string, componentName string) *corev1.Affinity
GetAffinityForDeployComponent Gets component pod specific affinity
func GetAffinityForJobAPIAuxComponent ¶ added in v1.55.1
func GetAffinityForOAuthAuxComponent ¶ added in v1.55.1
func GetAffinityForPipelineJob ¶ added in v1.55.1
GetAffinityForPipelineJob Gets pipeline job pod specific affinity
func GetAppAdminRbacSubjects ¶ added in v1.47.1
func GetAppAdminRbacSubjects(rr *v1.RadixRegistration) ([]rbacv1.Subject, error)
GetAppAdminRbacSubjects Get Role bindings for application admin
func GetAppAndTagPairFromName ¶
GetAppAndTagPairFromName Reverse engineer deployment name
func GetAppNamespace ¶
GetAppNamespace Function to get namespace from app name
func GetArchitectureFromRuntime ¶ added in v1.56.0
GetArchitectureFromRuntime returns architecture from Runtime. If Runtime is nil or Runtime.Architecture is empty then defaults.DefaultNodeSelectorArchitecture is returned
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
GetAuxiliaryComponentSecretName Get secret name for AuxiliaryComponent
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 GetComponentServiceAccountName ¶ added in v1.31.0
GetComponentServiceAccountName Gets unique name for component or job service account
func GetDeploymentName ¶
GetDeploymentName Function to get deployment name
func GetDeploymentPodSpecTolerations ¶ added in v1.46.2
func GetDeploymentPodSpecTolerations(node *v1.RadixNode) []corev1.Toleration
GetDeploymentPodSpecTolerations returns tolerations required to schedule the component pod on specific nodes
func GetEnvVarsFromAzureKeyVaultSecretRefs ¶ added in v1.23.4
func GetEnvVarsFromAzureKeyVaultSecretRefs(radixDeploymentName, componentName string, secretRefs radixv1.RadixSecretRefs) []corev1.EnvVar
GetEnvVarsFromAzureKeyVaultSecretRefs Get EnvVars from AzureKeyVaultSecretRefs
func GetEnvVarsFromSecrets ¶ added in v1.23.4
GetEnvVarsFromSecrets Get EnvVars from secret names
func GetEnvironmentNamespace ¶
GetEnvironmentNamespace Function to get namespace from app name and environment
func GetExternalDnsTlsSecretName ¶ added in v1.50.1
func GetExternalDnsTlsSecretName(externalDns radixv1.RadixDeployExternalDNS) string
GetExternalDnsTlsSecretName Get name of TLS secret for external DNS
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 GetImageCachePath ¶ added in v1.44.1
GetImageCachePath Returns a container image path given container registry, app, component
func GetImagePath ¶
GetImagePath Returns a container image path given container registry, app, component and tag
func GetKubernetesClient ¶
func GetKubernetesClient(ctx context.Context, configOptions ...KubernetesClientConfigOption) (kubernetes.Interface, radixclient.Interface, kedav2.Interface, monitoring.Interface, secretProviderClient.Interface, certclient.Interface)
GetKubernetesClient Gets clients to talk to the API
func GetNodeGPUCount ¶ added in v1.46.2
GetNodeGPUCount Gets GPU count for the RadixNode
func GetNodeGPULists ¶ added in v1.46.2
GetNodeGPULists Get including and excluding GPU names for the node
func GetPDBConfig ¶ added in v1.21.9
func GetPDBConfig(componentName string, namespace string) *v1.PodDisruptionBudget
GetPDBConfig returns a standard PodDisruptionBudget configuration
func GetPDBName ¶ added in v1.21.9
GetPDBName returns a PodDisruptionBudget name
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 GetPipelineJobPodSpecTolerations ¶ added in v1.46.2
func GetPipelineJobPodSpecTolerations() []corev1.Toleration
GetPipelineJobPodSpecTolerations returns tolerations required to schedule the pipeline job pod on specific nodes
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 GetRepositoryName ¶ added in v1.23.5
GetRepositoryName Returns a container registry repository name given
func GetResourceRequirements ¶ added in v1.8.16
func GetResourceRequirements(deployComponent v1.RadixCommonDeployComponent) (corev1.ResourceRequirements, error)
func GetScheduledJobPodSpecTolerations ¶ added in v1.46.2
func GetScheduledJobPodSpecTolerations(node *v1.RadixNode) []corev1.Toleration
GetScheduledJobPodSpecTolerations returns tolerations required to schedule the job-component pod on specific nodes
func GetServicePorts ¶ added in v1.32.0
func GetServicePorts(componentPorts []radixv1.ComponentPort) []corev1.ServicePort
GetServicePorts transforms a Radix ComponentPort list toa ServicePort list for use with a Kubernetes Service
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 GetSubPipelineServiceAccountName ¶ added in v1.46.0
GetSubPipelineServiceAccountName Gets unique name for component or job service account
func GetTriggerAuthenticationName ¶ added in v1.55.0
GetTriggerAuthenticationName Function to get trigger authentication name
func GrantAppAdminAccessToSecret ¶ added in v1.36.2
func GrantAppAdminAccessToSecret(ctx context.Context, kubeutil *kube.Kube, registration *radixv1.RadixRegistration, roleName string, secretName string) error
GrantAppAdminAccessToSecret grants access to a secret for app-admin groups
func GrantAppReaderAccessToSecret ¶ added in v1.39.3
func GrantAppReaderAccessToSecret(ctx context.Context, kubeutil *kube.Kube, registration *radixv1.RadixRegistration, roleName string, secretName string) error
GrantAppReaderAccessToSecret grants access to a secret for app-reader groups
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 PollUntilRESTClientSuccessfulConnection ¶ added in v1.43.7
func PollUntilRESTClientSuccessfulConnection[T interface{ RESTClient() rest.Interface }](ctx context.Context, timeout time.Duration, interval time.Duration, clientFactory func() (T, error)) (T, error)
PollUntilRESTClientSuccessfulConnection tries a GET request to root with the RESTClient returned by clientFactory. clientFactory will be invoked on `interval` for each connection attempt until the request returns no error, the error is not `net/http: TLS handshake timeout` or `ctx` is cancelled or hits a deadline. Polling will terminate after `duration` defined in timeout.
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
func UseGPUNode ¶ added in v1.46.2
UseGPUNode If RadixNode is defined to use GPU node
Types ¶
type ApplicationBuilder ¶
type ApplicationBuilder interface { WithRadixRegistration(RegistrationBuilder) ApplicationBuilder WithAppName(appName string) ApplicationBuilder WithBuildSecrets(buildSecrets ...string) ApplicationBuilder WithBuildVariables(buildVariables radixv1.EnvVarsMap) ApplicationBuilder WithBuildKit(useBuildKit *bool) ApplicationBuilder WithBuildCache(*bool) ApplicationBuilder WithEnvironment(environment, buildFrom string) ApplicationBuilder WithEnvironmentNoBranch(environment string) ApplicationBuilder WithComponent(components RadixApplicationComponentBuilder) ApplicationBuilder WithComponents(components ...RadixApplicationComponentBuilder) ApplicationBuilder WithJobComponent(component RadixApplicationJobComponentBuilder) ApplicationBuilder WithJobComponents(components ...RadixApplicationJobComponentBuilder) ApplicationBuilder WithDNSAppAlias(env, component string) ApplicationBuilder WithDNSAlias(dnsAliases ...radixv1.DNSAlias) ApplicationBuilder WithDNSExternalAlias(alias, env, component string, useCertificateAutomation bool) ApplicationBuilder WithPrivateImageRegistry(server, username, email string) ApplicationBuilder WithApplicationEnvironmentBuilders(environmentBuilders ...ApplicationEnvironmentBuilder) ApplicationBuilder WithSubPipeline(subPipelineBuilder SubPipelineBuilder) ApplicationBuilder GetRegistrationBuilder() RegistrationBuilder BuildRA() *radixv1.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() *radixv1.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) WithApplicationEnvironmentBuilders ¶ added in v1.52.0
func (ap *ApplicationBuilderStruct) WithApplicationEnvironmentBuilders(environmentBuilders ...ApplicationEnvironmentBuilder) ApplicationBuilder
WithApplicationEnvironmentBuilders Sets app-environment builders
func (*ApplicationBuilderStruct) WithBuildCache ¶ added in v1.44.1
func (ap *ApplicationBuilderStruct) WithBuildCache(useBuildCache *bool) ApplicationBuilder
func (*ApplicationBuilderStruct) WithBuildKit ¶ added in v1.28.0
func (ap *ApplicationBuilderStruct) WithBuildKit(useBuildKit *bool) ApplicationBuilder
func (*ApplicationBuilderStruct) WithBuildSecrets ¶ added in v1.3.0
func (ap *ApplicationBuilderStruct) WithBuildSecrets(buildSecrets ...string) ApplicationBuilder
WithBuildSecrets Appends to build secrets
func (*ApplicationBuilderStruct) WithBuildVariables ¶ added in v1.52.0
func (ap *ApplicationBuilderStruct) WithBuildVariables(buildVariables radixv1.EnvVarsMap) ApplicationBuilder
WithBuildVariables Sets build variables
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) WithDNSAlias ¶ added in v1.47.0
func (ap *ApplicationBuilderStruct) WithDNSAlias(dnsAliases ...radixv1.DNSAlias) ApplicationBuilder
WithDNSAlias Sets alias for env and component to be the DNS alias like "my-alias.radix.equinor.com" or "my-alias.<clustername>.radix.equinor.com"
func (*ApplicationBuilderStruct) WithDNSAppAlias ¶
func (ap *ApplicationBuilderStruct) WithDNSAppAlias(env, component string) ApplicationBuilder
WithDNSAppAlias Sets env + component to be the app alias like "frontend-myapp-prod.radix.equinor.com" or "frontend-myapp-prod.<clustername>.radix.equinor.com"
func (*ApplicationBuilderStruct) WithDNSExternalAlias ¶
func (ap *ApplicationBuilderStruct) WithDNSExternalAlias(alias, env, component string, useCertificateAutomation bool) ApplicationBuilder
WithDNSExternalAlias Sets env + component to 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
func (*ApplicationBuilderStruct) WithSubPipeline ¶ added in v1.52.0
func (ap *ApplicationBuilderStruct) WithSubPipeline(subPipelineBuilder SubPipelineBuilder) ApplicationBuilder
WithSubPipeline sub-pipeline config
type ApplicationEnvironmentBuilder ¶ added in v1.52.0
type ApplicationEnvironmentBuilder interface { WithName(name string) ApplicationEnvironmentBuilder WithBuildFrom(branch string) ApplicationEnvironmentBuilder WithEnvVars(envVars radixv1.EnvVarsMap) ApplicationEnvironmentBuilder WithSubPipeline(subPipelineBuilder SubPipelineBuilder) ApplicationEnvironmentBuilder Build() radixv1.Environment }
ApplicationEnvironmentBuilder interface
func NewApplicationEnvironmentBuilder ¶ added in v1.52.0
func NewApplicationEnvironmentBuilder() ApplicationEnvironmentBuilder
NewApplicationEnvironmentBuilder new instance of the ApplicationEnvironmentBuilder
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 // Deprecated: For backwards compatibility WithPublic is still supported, new code should use WithPublicPort instead WithPublic(bool) DeployComponentBuilder 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 // Deprecated: For backwards compatibility WithDNSExternalAliases is still supported, new code should use WithPublicPort instead WithDNSExternalAliases(...string) DeployComponentBuilder WithExternalDNS(...v1.RadixDeployExternalDNS) DeployComponentBuilder WithHorizontalScaling(scaling *v1.RadixHorizontalScaling) DeployComponentBuilder WithRunAsNonRoot(bool) DeployComponentBuilder WithAuthentication(*v1.Authentication) DeployComponentBuilder WithIdentity(*v1.Identity) DeployComponentBuilder WithReadOnlyFileSystem(*bool) DeployComponentBuilder WithRuntime(*v1.Runtime) 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 WithTimeLimitSeconds(*int64) DeployJobComponentBuilder WithIdentity(*v1.Identity) DeployJobComponentBuilder WithNotifications(*v1.Notifications) DeployJobComponentBuilder WithRuntime(*v1.Runtime) 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 DeployKey ¶ added in v1.36.2
DeployKey Representation of a deploy key pair
func DeriveDeployKeyFromPrivateKey ¶ added in v1.36.2
func GenerateDeployKey ¶ added in v1.36.2
GenerateDeployKey Generates a deploy key
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 WithJobName(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 WithAnnotations(map[string]string) 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 ARadixDeploymentWithComponentModifier ¶ added in v1.49.1
func ARadixDeploymentWithComponentModifier(m func(builder DeployComponentBuilder) DeployComponentBuilder) DeploymentBuilder
ARadixDeploymentWithComponentModifier Constructor for deployment builder containing test data, with modifier
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) WithAnnotations ¶ added in v1.22.2
func (db *DeploymentBuilderStruct) WithAnnotations(annotations map[string]string) DeploymentBuilder
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) WithJobName ¶ added in v1.30.6
func (db *DeploymentBuilderStruct) WithJobName(name string) DeploymentBuilder
WithJobName Sets RadixJob name
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 *radixv1.RadixRegistration) EnvironmentBuilder WithRegistrationBuilder(builder RegistrationBuilder) EnvironmentBuilder WithOrphaned(isOrphan bool) EnvironmentBuilder WithEgressConfig(egressRules radixv1.EgressConfig) EnvironmentBuilder WithResourceVersion(version string) EnvironmentBuilder GetRegistrationBuilder() RegistrationBuilder BuildRE() *radixv1.RadixEnvironment }
EnvironmentBuilder Handles construction of RE
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 radixv1.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() *radixv1.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 radixv1.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 *radixv1.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 HorizontalScalingBuilderStruct ¶ added in v1.55.0
type HorizontalScalingBuilderStruct struct {
// contains filtered or unexported fields
}
func NewHorizontalScalingBuilder ¶ added in v1.55.0
func NewHorizontalScalingBuilder() *HorizontalScalingBuilderStruct
NewHorizontalScalingBuilder Constructor for deployment actual
func (*HorizontalScalingBuilderStruct) Build ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) Build() *radixv1.RadixHorizontalScaling
func (*HorizontalScalingBuilderStruct) WithAzureServiceBusTrigger ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) WithAzureServiceBusTrigger(namespace, clientId, queueName, topicName, subscriptionName string, messageCount, acitvationmessageCount *int) *HorizontalScalingBuilderStruct
func (*HorizontalScalingBuilderStruct) WithCPUTrigger ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) WithCPUTrigger(value int) *HorizontalScalingBuilderStruct
func (*HorizontalScalingBuilderStruct) WithCRONTrigger ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) WithCRONTrigger(start, end, timezone string, desiredReplicas int) *HorizontalScalingBuilderStruct
func (*HorizontalScalingBuilderStruct) WithCooldownPeriod ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) WithCooldownPeriod(cooldown int32) *HorizontalScalingBuilderStruct
func (*HorizontalScalingBuilderStruct) WithMaxReplicas ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) WithMaxReplicas(maxReplicas int32) *HorizontalScalingBuilderStruct
func (*HorizontalScalingBuilderStruct) WithMemoryTrigger ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) WithMemoryTrigger(value int) *HorizontalScalingBuilderStruct
func (*HorizontalScalingBuilderStruct) WithMinReplicas ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) WithMinReplicas(minReplicas int32) *HorizontalScalingBuilderStruct
func (*HorizontalScalingBuilderStruct) WithPollingInterval ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) WithPollingInterval(pollingInterval int32) *HorizontalScalingBuilderStruct
func (*HorizontalScalingBuilderStruct) WithTrigger ¶ added in v1.55.0
func (h *HorizontalScalingBuilderStruct) WithTrigger(trigger radixv1.RadixHorizontalScalingTrigger) *HorizontalScalingBuilderStruct
type JobBuilder ¶
type JobBuilder interface { WithRadixApplication(ApplicationBuilder) JobBuilder WithJobName(string) JobBuilder WithAppName(string) JobBuilder WithPipelineImageTag(string) JobBuilder WithPipelineType(v1.RadixPipelineType) JobBuilder WithBranch(branch string) JobBuilder WithFromEnvironment(envName string) JobBuilder WithToEnvironment(envName string) JobBuilder WithCommitID(string) JobBuilder WithPushImage(bool) JobBuilder WithTektonImageTag(string) JobBuilder WithImageTag(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 ARadixBuildDeployJobWithAppBuilder ¶ added in v1.41.9
func ARadixBuildDeployJobWithAppBuilder(builderModifier func(builder ApplicationBuilder)) JobBuilder
ARadixBuildDeployJobWithAppBuilder Constructor for radix job builder with ApplicationBuilder modifier, 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) WithCommitID ¶ added in v1.43.5
func (jb *JobBuilderStruct) WithCommitID(commitID string) JobBuilder
WithCommitID Sets commit ID
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) WithFromEnvironment ¶ added in v1.50.1
func (jb *JobBuilderStruct) WithFromEnvironment(envName string) JobBuilder
WithFromEnvironment Sets source env
func (*JobBuilderStruct) WithImageTag ¶ added in v1.43.5
func (jb *JobBuilderStruct) WithImageTag(imageTag string) JobBuilder
WithImageTag Sets image tag
func (*JobBuilderStruct) WithJobName ¶
func (jb *JobBuilderStruct) WithJobName(name string) JobBuilder
WithJobName Sets name of the radix job
func (*JobBuilderStruct) WithPipelineImageTag ¶ added in v1.43.5
func (jb *JobBuilderStruct) WithPipelineImageTag(imageTag string) JobBuilder
WithPipelineImageTag Sets the pipeline image tag
func (*JobBuilderStruct) WithPipelineType ¶ added in v1.43.5
func (jb *JobBuilderStruct) WithPipelineType(pipeline v1.RadixPipelineType) JobBuilder
WithPipelineType Sets pipeline
func (*JobBuilderStruct) WithPushImage ¶ added in v1.43.5
func (jb *JobBuilderStruct) WithPushImage(push bool) JobBuilder
WithPushImage Sets push image
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
func (*JobBuilderStruct) WithTektonImageTag ¶ added in v1.46.2
func (jb *JobBuilderStruct) WithTektonImageTag(imageTag string) JobBuilder
func (*JobBuilderStruct) WithToEnvironment ¶ added in v1.50.1
func (jb *JobBuilderStruct) WithToEnvironment(envName string) JobBuilder
WithToEnvironment Sets target env
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 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 NewJobStepBuilder ¶
func NewJobStepBuilder() JobStepBuilder
NewJobStepBuilder Constructor for job step builder
type KubernetesClientConfigOption ¶ added in v1.21.6
func WithKubernetesClientRateLimiter ¶ added in v1.21.6
func WithKubernetesClientRateLimiter(rateLimiter flowcontrol.RateLimiter) KubernetesClientConfigOption
func WithKubernetesWarningHandler ¶ added in v1.50.4
func WithKubernetesWarningHandler(handler rest.WarningHandler) KubernetesClientConfigOption
type RadixApplicationComponentBuilder ¶
type RadixApplicationComponentBuilder interface { WithName(string) RadixApplicationComponentBuilder WithAlwaysPullImageOnDeploy(bool) RadixApplicationComponentBuilder WithSourceFolder(string) RadixApplicationComponentBuilder WithDockerfileName(string) RadixApplicationComponentBuilder WithImage(string) RadixApplicationComponentBuilder WithImageTagName(imageTagName 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 WithMonitoring(monitoring *bool) RadixApplicationComponentBuilder WithIngressConfiguration(...string) RadixApplicationComponentBuilder WithEnvironmentConfig(RadixEnvironmentConfigBuilder) RadixApplicationComponentBuilder WithEnvironmentConfigs(...RadixEnvironmentConfigBuilder) RadixApplicationComponentBuilder WithCommonEnvironmentVariable(string, string) RadixApplicationComponentBuilder WithCommonResource(map[string]string, map[string]string) RadixApplicationComponentBuilder WithNode(v1.RadixNode) RadixApplicationComponentBuilder WithAuthentication(*v1.Authentication) RadixApplicationComponentBuilder WithVolumeMounts([]v1.RadixVolumeMount) RadixApplicationComponentBuilder WithEnabled(bool) RadixApplicationComponentBuilder WithIdentity(*v1.Identity) RadixApplicationComponentBuilder WithReadOnlyFileSystem(*bool) RadixApplicationComponentBuilder WithHorizontalScaling(scaling *v1.RadixHorizontalScaling) RadixApplicationComponentBuilder WithRuntime(runtime *v1.Runtime) RadixApplicationComponentBuilder BuildComponent() v1.RadixComponent }
RadixApplicationComponentBuilder Handles construction of RA component
func AnApplicationComponent ¶
func AnApplicationComponent() RadixApplicationComponentBuilder
AnApplicationComponent Constructor for component 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 WithImageTagName(imageTagName string) RadixApplicationJobComponentBuilder WithPort(string, int32) RadixApplicationJobComponentBuilder WithSecrets(...string) RadixApplicationJobComponentBuilder WithSecretRefs(v1.RadixSecretRefs) RadixApplicationJobComponentBuilder WithMonitoringConfig(v1.MonitoringConfig) RadixApplicationJobComponentBuilder WithMonitoring(monitoring *bool) 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 WithBackoffLimit(*int32) RadixApplicationJobComponentBuilder WithEnabled(bool) RadixApplicationJobComponentBuilder WithIdentity(*v1.Identity) RadixApplicationJobComponentBuilder WithNotifications(*v1.Notifications) RadixApplicationJobComponentBuilder WithReadOnlyFileSystem(*bool) RadixApplicationJobComponentBuilder WithRuntime(*v1.Runtime) 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 WithSourceFolder(string) RadixEnvironmentConfigBuilder WithDockerfileName(string) RadixEnvironmentConfigBuilder WithImage(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(monitoring *bool) RadixEnvironmentConfigBuilder WithNode(v1.RadixNode) RadixEnvironmentConfigBuilder WithAuthentication(*v1.Authentication) RadixEnvironmentConfigBuilder WithSecretRefs(v1.RadixSecretRefs) RadixEnvironmentConfigBuilder WithEnabled(bool) RadixEnvironmentConfigBuilder WithIdentity(*v1.Identity) RadixEnvironmentConfigBuilder WithImageTagName(string) RadixEnvironmentConfigBuilder WithHorizontalScaling(scaling *v1.RadixHorizontalScaling) RadixEnvironmentConfigBuilder WithReadOnlyFileSystem(*bool) RadixEnvironmentConfigBuilder WithRuntime(*v1.Runtime) 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 WithSourceFolder(string) RadixJobComponentEnvironmentConfigBuilder WithDockerfileName(string) RadixJobComponentEnvironmentConfigBuilder WithImage(string) RadixJobComponentEnvironmentConfigBuilder WithEnvironmentVariable(string, string) RadixJobComponentEnvironmentConfigBuilder WithResource(map[string]string, map[string]string) RadixJobComponentEnvironmentConfigBuilder WithVolumeMounts([]v1.RadixVolumeMount) RadixJobComponentEnvironmentConfigBuilder WithMonitoring(monitoring *bool) RadixJobComponentEnvironmentConfigBuilder WithImageTagName(string) RadixJobComponentEnvironmentConfigBuilder WithNode(v1.RadixNode) RadixJobComponentEnvironmentConfigBuilder WithRunAsNonRoot(bool) RadixJobComponentEnvironmentConfigBuilder WithTimeLimitSeconds(*int64) RadixJobComponentEnvironmentConfigBuilder WithBackoffLimit(*int32) RadixJobComponentEnvironmentConfigBuilder WithSecretRefs(v1.RadixSecretRefs) RadixJobComponentEnvironmentConfigBuilder WithEnabled(bool) RadixJobComponentEnvironmentConfigBuilder WithIdentity(*v1.Identity) RadixJobComponentEnvironmentConfigBuilder WithNotifications(*v1.Notifications) RadixJobComponentEnvironmentConfigBuilder WithReadOnlyFileSystem(*bool) RadixJobComponentEnvironmentConfigBuilder WithRuntime(*v1.Runtime) 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 WithWBS(string) RegistrationBuilder WithConfigBranch(string) RegistrationBuilder WithRadixConfigFullName(string) RegistrationBuilder WithConfigurationItem(string) RegistrationBuilder WithRadixRegistration(*v1.RadixRegistration) RegistrationBuilder WithReaderAdGroups([]string) RegistrationBuilder BuildRR() *v1.RadixRegistration }
RegistrationBuilder Handles construction of RR or applicationRegistration
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) WithConfigurationItem ¶ added in v1.26.3
func (rb *RegistrationBuilderStruct) WithConfigurationItem(ci string) RegistrationBuilder
WithConfigBranch Sets ApplicationId
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) 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) WithRadixConfigFullName ¶ added in v1.27.0
func (rb *RegistrationBuilderStruct) WithRadixConfigFullName(fullName string) RegistrationBuilder
WithRadixConfigFullName Sets RadixConfigFullName
func (*RegistrationBuilderStruct) WithRadixRegistration ¶
func (rb *RegistrationBuilderStruct) WithRadixRegistration(radixRegistration *v1.RadixRegistration) RegistrationBuilder
WithRadixRegistration Re-enginers a builder from a registration
func (*RegistrationBuilderStruct) WithReaderAdGroups ¶ added in v1.39.3
func (rb *RegistrationBuilderStruct) WithReaderAdGroups(readerAdGroups []string) RegistrationBuilder
WithReaderAdGroups Sets reader ad group
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
type SubPipelineBuilder ¶ added in v1.52.0
type SubPipelineBuilder interface { WithEnvVars(envVars radixv1.EnvVarsMap) SubPipelineBuilder WithIdentity(identity *radixv1.Identity) SubPipelineBuilder Build() *radixv1.SubPipeline }
SubPipelineBuilder the sub-pipeline builder
func NewSubPipelineBuilder ¶ added in v1.52.0
func NewSubPipelineBuilder() SubPipelineBuilder
NewSubPipelineBuilder instance of the builder
type ZerologWarningHandlerAdapter ¶ added in v1.50.4
func (ZerologWarningHandlerAdapter) HandleWarningHeader ¶ added in v1.50.4
func (zl ZerologWarningHandlerAdapter) HandleWarningHeader(_ int, _ string, text string)
Source Files ¶
- affinity.go
- application_builder.go
- application_environment_builder.go
- application_sub_pipeline_builder.go
- applicationcomponent_builder.go
- applicationjobcomponent_builder.go
- applications.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
- horizontalscaling.go
- horizontalscaling_builder.go
- imageutil.go
- init.go
- job_builder.go
- jobcomponentenvironment_builder.go
- keyGen.go
- namespaces.go
- node.go
- pdb.go
- persistentvolumeclaim.go
- poll.go
- random.go
- registration_builder.go
- resources.go
- runtime.go
- secrets.go
- serviceaccount.go
- services.go
- storageclass.go
- strings.go
- tolerations.go