applicationconfig

package
v1.99.999 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 22 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 GetComponent

func GetComponent(ra *v1.RadixApplication, name string) *v1.RadixComponent

GetComponent Gets the component for a provided name

func GetComponentEnvironmentConfig

func GetComponentEnvironmentConfig(ra *v1.RadixApplication, envName, componentName string) *v1.RadixEnvironmentConfig

GetComponentEnvironmentConfig Gets environment config of component

func GetConfigBranch added in v1.6.0

func GetConfigBranch(rr *v1.RadixRegistration) string

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

func GetEnvironment

func GetEnvironment(component *v1.RadixComponent, envName string) *v1.RadixEnvironmentConfig

GetEnvironment Gets environment config of component

func GetKubeDPrivateImageHubAnnotationValues added in v1.0.1

func GetKubeDPrivateImageHubAnnotationValues(appName string) (key, value string)

GetKubeDPrivateImageHubAnnotationValues gets value and key to use for namespace annotation to pick up private image hubs

func IsConfigBranch added in v1.6.0

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

IsConfigBranch Checks if given branch is were radix config lives

func IsThereAnythingToDeployForRadixApplication added in v1.21.0

func IsThereAnythingToDeployForRadixApplication(branch string, ra *v1.RadixApplication) (bool, map[string]bool)

IsThereAnythingToDeployForRadixApplication Checks if given branch requires deployment to environments

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 *v1.RadixRegistration,
	config *v1.RadixApplication) (*ApplicationConfig, error)

NewApplicationConfig Constructor

func (*ApplicationConfig) ApplyConfigToApplicationNamespace

func (app *ApplicationConfig) ApplyConfigToApplicationNamespace() error

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

func (*ApplicationConfig) GetPendingPrivateImageHubSecrets added in v1.0.1

func (app *ApplicationConfig) GetPendingPrivateImageHubSecrets() ([]string, error)

GetPendingPrivateImageHubSecrets returns a list of private image hubs where secret value is not set

func (*ApplicationConfig) GetRadixApplicationConfig added in v1.0.2

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

GetRadixApplicationConfig returns the provided config

func (*ApplicationConfig) GetRadixRegistration added in v1.0.2

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

GetRadixRegistration returns the provided radix registration

func (*ApplicationConfig) IsThereAnythingToDeploy added in v1.4.2

func (app *ApplicationConfig) IsThereAnythingToDeploy(branch string) (bool, map[string]bool)

IsThereAnythingToDeploy Checks if given branch requires deployment to environments

func (*ApplicationConfig) OnSync

func (app *ApplicationConfig) OnSync() 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

func (*ApplicationConfig) UpdatePrivateImageHubsSecretsPassword added in v1.0.1

func (app *ApplicationConfig) UpdatePrivateImageHubsSecretsPassword(server, password string) error

UpdatePrivateImageHubsSecretsPassword updates the private image hub secret

Jump to

Keyboard shortcuts

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