applicationconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 15 Imported by: 5

Documentation

Index

Constants

View Source
const MagicBranch = "master"

MagicBranch The branch that radix config lives on

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 GetEnvironment

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

GetEnvironment Gets environment config of component

func IsMagicBranch

func IsMagicBranch(branch string) bool

IsMagicBranch Checks if given branch is were 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 *v1.RadixRegistration,
	config *radixv1.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) IsBranchMappedToEnvironment

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

IsBranchMappedToEnvironment Checks if given branch has a mapping

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

Jump to

Keyboard shortcuts

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