Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deployments/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module "dpe-sandbox-spacelift-development" {
auto_deploy = false
auto_prune = true
git_branch = var.git_branch
dags_git_branch = "develop"

space_name = "dpe-sandbox"

Expand Down Expand Up @@ -110,6 +111,7 @@ module "dpe-sandbox-spacelift-production" {
aws_integration_id = var.org_sagebase_dpe_prod_aws_integration_id
auto_deploy = false
git_branch = var.git_branch
dags_git_branch = "main"

space_name = "dpe-k8s"

Expand Down
1 change: 1 addition & 0 deletions deployments/spacelift/dpe-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ locals {
enable_otel_ingress = var.enable_otel_ingress
ssl_hostname = var.ssl_hostname
smtp_from = var.smtp_from
dags_git_branch = var.dags_git_branch
}

# Variables to be passed from the k8s stack to the deployments stack
Expand Down
6 changes: 6 additions & 0 deletions deployments/spacelift/dpe-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,9 @@ variable "smtp_from" {
type = string
default = ""
}

variable "dags_git_branch" {
description = "The orca-recipes branch to sync DAGs from"
type = string
default = "main"
}
1 change: 1 addition & 0 deletions deployments/stacks/dpe-k8s-deployments/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ module "airflow" {
git_revision = local.git_revision
namespace = "airflow"
docker_access_token = var.docker_access_token
dags_git_branch = var.dags_git_branch
}

module "postgres-cloud-native-operator" {
Expand Down
6 changes: 6 additions & 0 deletions deployments/stacks/dpe-k8s-deployments/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,9 @@ variable "docker_access_token" {
type = string
default = ""
}

variable "dags_git_branch" {
description = "The orca-recipes branch to sync DAGs from"
type = string
default = "main"
}
5 changes: 5 additions & 0 deletions modules/apache-airflow/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ spec:
releaseName: airflow
valueFiles:
- $values/modules/apache-airflow/templates/values.yaml
parameters:
- name: dags.gitSync.branch
value: ${var.dags_git_branch}
- name: dags.gitSync.ref
value: ${var.dags_git_branch}
- repoURL: 'https://github.com/Sage-Bionetworks-Workflows/eks-stack.git'
targetRevision: ${var.git_revision}
ref: values
Expand Down
6 changes: 6 additions & 0 deletions modules/apache-airflow/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ variable "docker_email" {
default = "dpe@sagebase.org"
type = string
}

variable "dags_git_branch" {
description = "The orca-recipes branch to sync DAGs from"
type = string
default = "main"
}