Documentation
¶
Index ¶
- Constants
- func GetAllTargetEnvironments(gitRef, gitRefType string, ra *radixv1.RadixApplication) []string
- func GetConfigBranch(rr *radixv1.RadixRegistration) string
- func GetTargetEnvironments(gitRef, gitRefType string, ra *radixv1.RadixApplication, ...) ([]string, []string, []string)
- func IsConfigBranch(branch string, rr *radixv1.RadixRegistration) bool
- func MarshalPrivateImageHubAuthConfig(authConfig docker.AuthConfig) ([]byte, error)
- func UnmarshalPrivateImageHubAuthConfig(value []byte) (docker.AuthConfig, error)
- type ApplicationConfig
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 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, dnsZone string) *ApplicationConfig
NewApplicationConfig Constructor
func (*ApplicationConfig) GetRadixRegistration ¶ added in v1.0.2
func (app *ApplicationConfig) GetRadixRegistration() *radixv1.RadixRegistration
GetRadixRegistration returns the provided radix registration