Documentation ¶
Index ¶
- Constants
- func ConstructForTargetEnvironment(config *v1.RadixApplication, jobName, imageTag, branch, commitID string, ...) (v1.RadixDeployment, error)
- func GetCascadeBoolean(first *bool, second *bool, fallback bool) bool
- func GetDeploymentComponent(rd *v1.RadixDeployment, name string) (int, *v1.RadixDeployComponent)
- func GetEnvironmentVariablesFromRadixDeployComponent(appName string, kubeutil *kube.Kube, radixDeployment *v1.RadixDeployment, ...) []corev1.EnvVar
- func GetEnvironmentVariablesFromRadixDeployJobComponent(appName string, kubeutil *kube.Kube, radixDeployment *v1.RadixDeployment, ...) []corev1.EnvVar
- func GetExternalDNSAliasForComponentEnvironment(radixApplication *v1.RadixApplication, component, env string) []string
- func GetRadixDeployComponentVolumeMounts(deployComponent *radixv1.RadixDeployComponent) []corev1.VolumeMount
- func GetRadixDeployJobComponentVolumeMounts(deployJobComponent *radixv1.RadixDeployJobComponent) []corev1.VolumeMount
- func IsDNSAppAlias(env, componentName string, dnsAppAlias v1.AppAlias) bool
- func IsRadixDeploymentInactive(rd *v1.RadixDeployment) bool
- type AnnotationConfiguration
- type Deployment
- type IngressConfiguration
- type JobComponentsBuilder
- type RadixComponentName
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, jobName, imageTag, branch, commitID string, componentImages map[string]pipeline.ComponentImage, env string) (v1.RadixDeployment, error)
ConstructForTargetEnvironment Will build a deployment for target environment
func GetCascadeBoolean ¶ added in v1.5.16
func GetDeploymentComponent ¶
func GetDeploymentComponent(rd *v1.RadixDeployment, name string) (int, *v1.RadixDeployComponent)
GetDeploymentComponent Gets the index of and the component given name
func GetEnvironmentVariablesFromRadixDeployComponent ¶ added in v1.8.11
func GetEnvironmentVariablesFromRadixDeployComponent(appName string, kubeutil *kube.Kube, radixDeployment *v1.RadixDeployment, deployComponent *v1.RadixDeployComponent) []corev1.EnvVar
func GetEnvironmentVariablesFromRadixDeployJobComponent ¶ added in v1.8.11
func GetEnvironmentVariablesFromRadixDeployJobComponent(appName string, kubeutil *kube.Kube, radixDeployment *v1.RadixDeployment, deployJobComponent *v1.RadixDeployComponent) []corev1.EnvVar
func GetExternalDNSAliasForComponentEnvironment ¶
func GetExternalDNSAliasForComponentEnvironment(radixApplication *v1.RadixApplication, component, env string) []string
GetExternalDNSAliasForComponentEnvironment Gets external DNS alias
func GetRadixDeployComponentVolumeMounts ¶ added in v1.8.11
func GetRadixDeployComponentVolumeMounts(deployComponent *radixv1.RadixDeployComponent) []corev1.VolumeMount
func GetRadixDeployJobComponentVolumeMounts ¶ added in v1.8.11
func GetRadixDeployJobComponentVolumeMounts(deployJobComponent *radixv1.RadixDeployJobComponent) []corev1.VolumeMount
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
type JobComponentsBuilder ¶ added in v1.8.0
type JobComponentsBuilder interface {
JobComponents() []v1.RadixDeployJobComponent
}
JobComponentsBuilder builds RD job components for a given environment
func NewJobComponentsBuilder ¶ added in v1.8.0
func NewJobComponentsBuilder(ra *v1.RadixApplication, env string, componentImages map[string]pipeline.ComponentImage) JobComponentsBuilder
NewJobComponentsBuilder constructor for JobComponentsBuilder
type RadixComponentName ¶ added in v1.8.3
type RadixComponentName string
RadixComponentName defines values for radix-component-type label
func NewRadixComponentNameFromLabels ¶ added in v1.8.3
func NewRadixComponentNameFromLabels(object metav1.Object) (componentName RadixComponentName, ok bool)
NewRadixComponentNameFromLabels returns RadixComponentName from labels defined for the object
func (RadixComponentName) ExistInDeploymentSpec ¶ added in v1.8.3
func (t RadixComponentName) ExistInDeploymentSpec(rd *v1.RadixDeployment) bool
ExistInDeploymentSpec checks if RadixDeployment has any component or job with this name
func (RadixComponentName) ExistInDeploymentSpecComponentList ¶ added in v1.8.3
func (t RadixComponentName) ExistInDeploymentSpecComponentList(rd *v1.RadixDeployment) bool
ExistInDeploymentSpecComponentList checks if RadixDeployment has any component with this name
func (RadixComponentName) ExistInDeploymentSpecJobList ¶ added in v1.8.3
func (t RadixComponentName) ExistInDeploymentSpecJobList(rd *v1.RadixDeployment) bool
ExistInDeploymentSpecJobList checks if RadixDeployment has any job with this name