Documentation ¶
Index ¶
- Constants
- func ConstructForTargetEnvironment(config *v1.RadixApplication, ...) (v1.RadixDeployment, error)
- func DeployToEnvironment(env v1.Environment, targetEnvs map[string]bool) bool
- func GetDeploymentComponent(rd *v1.RadixDeployment, name string) (int, *v1.RadixDeployComponent)
- func GetExternalDNSAliasForComponentEnvironment(radixApplication *v1.RadixApplication, component, env string) []string
- func GetLatestDeploymentInNamespace(radixclient radixclient.Interface, namespace string) (*v1.RadixDeployment, error)
- func IsDNSAppAlias(env, componentName string, dnsAppAlias v1.AppAlias) bool
- func IsRadixDeploymentInactive(rd *v1.RadixDeployment) bool
- type AnnotationConfiguration
- type Deployment
- type IngressConfiguration
Constants ¶
const (
// DefaultReplicas Hold the default replicas for the deployment if nothing is stated in the radix config
DefaultReplicas = 1
)
Variables ¶
This section is empty.
Functions ¶
func ConstructForTargetEnvironment ¶
func ConstructForTargetEnvironment(config *v1.RadixApplication, containerRegistry, jobName, imageTag, branch, commitID string, env string) (v1.RadixDeployment, error)
ConstructForTargetEnvironment Will build a deployment for target environment
func DeployToEnvironment ¶
func DeployToEnvironment(env v1.Environment, targetEnvs map[string]bool) bool
DeployToEnvironment Will return true/false depending on it has a mapping in config
func GetDeploymentComponent ¶
func GetDeploymentComponent(rd *v1.RadixDeployment, name string) (int, *v1.RadixDeployComponent)
GetDeploymentComponent Gets the index of and the component given name
func GetExternalDNSAliasForComponentEnvironment ¶
func GetExternalDNSAliasForComponentEnvironment(radixApplication *v1.RadixApplication, component, env string) []string
GetExternalDNSAliasForComponentEnvironment Gets external DNS alias
func GetLatestDeploymentInNamespace ¶
func GetLatestDeploymentInNamespace(radixclient radixclient.Interface, namespace string) (*v1.RadixDeployment, error)
GetLatestDeploymentInNamespace Gets the last deployment in namespace
func IsDNSAppAlias ¶
IsDNSAppAlias Checks if environment and component represents the DNS app alias
func IsRadixDeploymentInactive ¶
func IsRadixDeploymentInactive(rd *v1.RadixDeployment) bool
IsRadixDeploymentInactive checks if deployment is inactive
Types ¶
type AnnotationConfiguration ¶
AnnotationConfiguration Holds annotations for a single configuration
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
Deployment Instance variables
func NewDeployment ¶
func NewDeployment(kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, prometheusperatorclient monitoring.Interface, registration *v1.RadixRegistration, radixDeployment *v1.RadixDeployment) (Deployment, error)
NewDeployment Constructor
func (*Deployment) Apply ¶
func (deploy *Deployment) Apply() error
Apply Will make deployment effective
func (*Deployment) OnSync ¶
func (deploy *Deployment) OnSync() error
OnSync compares the actual state with the desired, and attempts to converge the two
type IngressConfiguration ¶
type IngressConfiguration struct {
AnnotationConfigurations []AnnotationConfiguration `yaml:"configuration"`
}
IngressConfiguration Holds all ingress annotation confurations