applicationconfig

package
v1.108.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 31 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

View Source
var (
	ErrDNSAliasUsedByOtherApplication = errors.New("dns alias is used by another application")
)

Functions

func GetAllTargetEnvironments added in v1.78.0

func GetAllTargetEnvironments(gitRef, gitRefType string, ra *radixv1.RadixApplication) []string

GetAllTargetEnvironments Gets all target environments for a given branch

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 GetTargetEnvironments added in v1.45.2

func GetTargetEnvironments(gitRef, gitRefType string, ra *radixv1.RadixApplication, triggeredFromWebhook bool) ([]string, []string, []string)

GetTargetEnvironments Gets applicable target environments to be built for a given branch

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

func MarshalPrivateImageHubAuthConfig added in v1.78.1

func MarshalPrivateImageHubAuthConfig(authConfig docker.AuthConfig) ([]byte, error)

MarshalPrivateImageHubAuthConfig marshals AuthConfig as valid secret data to be used as ImagePullSecrets

func UnmarshalPrivateImageHubAuthConfig added in v1.78.1

func UnmarshalPrivateImageHubAuthConfig(value []byte) (docker.AuthConfig, error)

UnmarshalPrivateImageHubAuthConfig unmarshals DockerConfigJsonKey secret data

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) *ApplicationConfig

NewApplicationConfig Constructor

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