internal

package
v1.58.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareBuildSecretHash added in v1.56.0

func CompareBuildSecretHash(targetHash string, secret *corev1.Secret) (bool, error)

func CompareRadixApplicationHash added in v1.56.0

func CompareRadixApplicationHash(targetHash string, ra *radixv1.RadixApplication) (bool, error)

func ConstructForTargetEnvironment

func ConstructForTargetEnvironment(ctx context.Context, config *radixv1.RadixApplication, activeRadixDeployment *radixv1.RadixDeployment, jobName, imageTag, branch string, componentImages pipeline.DeployComponentImages, envName string, defaultEnvVars radixv1.EnvVarsMap, radixConfigHash, buildSecretHash string, buildContext *model.PrepareBuildContext, componentsToDeploy []string) (*radixv1.RadixDeployment, error)

ConstructForTargetEnvironment Will build a deployment for target environment

func CreateBuildSecretHash added in v1.56.0

func CreateBuildSecretHash(secret *corev1.Secret) (string, error)

func CreateRadixApplicationHash added in v1.56.0

func CreateRadixApplicationHash(ra *radixv1.RadixApplication) (string, error)

func GetCurrentRadixDeployment

func GetCurrentRadixDeployment(ctx context.Context, kubeUtil *kube.Kube, namespace string) (*radixv1.RadixDeployment, error)

GetCurrentRadixDeployment Returns active RadixDeployment if it exists and if it is available to get

func GetGitCommitHashFromDeployment added in v1.56.0

func GetGitCommitHashFromDeployment(radixDeployment *radixv1.RadixDeployment) string

func GetRuntimeForEnvironment added in v1.56.0

func GetRuntimeForEnvironment(radixComponent v1.RadixCommonComponent, environment string) *v1.Runtime

GetRuntimeForEnvironment Returns Runtime configuration by combining Runtime from the specified environment with Runtime configuration on the component level.

Types

type PreservingDeployComponents

type PreservingDeployComponents struct {
	DeployComponents    []radixv1.RadixDeployComponent
	DeployJobComponents []radixv1.RadixDeployJobComponent
}

PreservingDeployComponents DeployComponents, not to be updated during deployment, but transferred from an active deployment

Jump to

Keyboard shortcuts

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