applicationconfig

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 28 Imported by: 5

Documentation

Index

Constants

View Source
const ConfigBranchFallback = "master"

ConfigBranchFallback The branch to use for radix config if ConfigBranch is not configured on the radix registration

Variables

This section is empty.

Functions

func ApplyPrivateImageHubSecret added in v1.47.0

func ApplyPrivateImageHubSecret(ctx context.Context, kubeutil *kube.Kube, ns, appName string, secretValue []byte) error

ApplyPrivateImageHubSecret create a private image hub secret based on SecretTypeDockerConfigJson

func GetConfigBranch added in v1.6.0

func GetConfigBranch(rr *radixv1.RadixRegistration) string

GetConfigBranch Returns config branch name from radix registration, or "master" if not set.

func GetImageHubSecretValue added in v1.47.0

func GetImageHubSecretValue(value []byte) (docker.Auths, error)

GetImageHubSecretValue gets imagehub secret value

func GetImageHubsSecretValue added in v1.47.0

func GetImageHubsSecretValue(imageHubs docker.Auths) ([]byte, error)

GetImageHubsSecretValue turn SecretImageHubs into a correctly formated secret for k8s ImagePullSecrets

func GetTargetEnvironments added in v1.45.2

func GetTargetEnvironments(branchToBuild string, ra *radixv1.RadixApplication) []string

GetTargetEnvironments Checks if given branch requires deployment to environments

func IsConfigBranch added in v1.6.0

func IsConfigBranch(branch string, rr *radixv1.RadixRegistration) bool

IsConfigBranch Checks if given branch is where radix config lives

Types

type ApplicationConfig

type ApplicationConfig struct {
	// contains filtered or unexported fields
}

ApplicationConfig Instance variables

func NewApplicationConfig

func NewApplicationConfig(kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, registration *radixv1.RadixRegistration, config *radixv1.RadixApplication, dnsAliasConfig *dnsalias.DNSConfig) *ApplicationConfig

NewApplicationConfig Constructor

func (*ApplicationConfig) ApplyConfigToApplicationNamespace

func (app *ApplicationConfig) ApplyConfigToApplicationNamespace(ctx context.Context) error

ApplyConfigToApplicationNamespace Will apply the config to app namespace so that the operator can act on it

func (*ApplicationConfig) GetRadixApplicationConfig added in v1.0.2

func (app *ApplicationConfig) GetRadixApplicationConfig() *radixv1.RadixApplication

GetRadixApplicationConfig returns the provided config

func (*ApplicationConfig) GetRadixRegistration added in v1.0.2

func (app *ApplicationConfig) GetRadixRegistration() *radixv1.RadixRegistration

GetRadixRegistration returns the provided radix registration

func (*ApplicationConfig) OnSync

func (app *ApplicationConfig) OnSync(ctx context.Context) error

OnSync is called when an application config is applied to application namespace It compares the actual state with the desired, and attempts to converge the two

Jump to

Keyboard shortcuts

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