Documentation ¶
Index ¶
- Constants
- func ApplyPrivateImageHubSecret(ctx context.Context, kubeutil *kube.Kube, ns, appName string, ...) error
- func GetConfigBranch(rr *radixv1.RadixRegistration) string
- func GetImageHubSecretValue(value []byte) (docker.Auths, error)
- func GetImageHubsSecretValue(imageHubs docker.Auths) ([]byte, error)
- func GetTargetEnvironments(branchToBuild string, ra *radixv1.RadixApplication) []string
- func IsConfigBranch(branch string, rr *radixv1.RadixRegistration) bool
- type ApplicationConfig
- func (app *ApplicationConfig) ApplyConfigToApplicationNamespace(ctx context.Context) error
- func (app *ApplicationConfig) GetRadixApplicationConfig() *radixv1.RadixApplication
- func (app *ApplicationConfig) GetRadixRegistration() *radixv1.RadixRegistration
- func (app *ApplicationConfig) OnSync(ctx context.Context) 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 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
GetImageHubSecretValue gets imagehub secret value
func GetImageHubsSecretValue ¶ added in v1.47.0
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