Documentation ¶
Index ¶
- Constants
- func GetComponent(ra *v1.RadixApplication, name string) *v1.RadixComponent
- func GetComponentEnvironmentConfig(ra *v1.RadixApplication, envName, componentName string) *v1.RadixEnvironmentConfig
- func GetConfigBranch(rr *v1.RadixRegistration) string
- func GetEnvironment(component *v1.RadixComponent, envName string) *v1.RadixEnvironmentConfig
- func GetKubeDPrivateImageHubAnnotationValues(appName string) (key, value string)
- func IsConfigBranch(branch string, rr *v1.RadixRegistration) bool
- func IsThereAnythingToDeployForRadixApplication(branch string, ra *v1.RadixApplication) (bool, map[string]bool)
- type ApplicationConfig
- func (app *ApplicationConfig) ApplyConfigToApplicationNamespace() error
- func (app *ApplicationConfig) GetPendingPrivateImageHubSecrets() ([]string, error)
- func (app *ApplicationConfig) GetRadixApplicationConfig() *v1.RadixApplication
- func (app *ApplicationConfig) GetRadixRegistration() *v1.RadixRegistration
- func (app *ApplicationConfig) IsThereAnythingToDeploy(branch string) (bool, map[string]bool)
- func (app *ApplicationConfig) OnSync() error
- func (app *ApplicationConfig) UpdatePrivateImageHubsSecretsPassword(server, password string) error
Constants ¶
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
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