Skip to content

Commit

Permalink
[#77] Use separate workflows namespace if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Karbyshev committed Apr 6, 2021
1 parent 8e274a4 commit 7cedf1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions terraform/modules/k8s/argo/main/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ locals {
pg_username = local.pg_credentials_plain == 1 ? var.pgsql.db_password : lookup(lookup(data.kubernetes_secret.pg[0], "data", {}), "username", "")
pg_password = local.pg_credentials_plain == 1 ? var.pgsql.db_user : lookup(lookup(data.kubernetes_secret.pg[0], "data", {}), "password", "")

# workflows_namespace = var.configuration.workflows_namespace == "" ? var.configuration.namespace : var.configuration.workflows_namespace
workflows_namespace = var.configuration.workflows_namespace == "" ? var.configuration.namespace : var.configuration.workflows_namespace
# workflows_namespace = var.configuration.workflows_namespace == "" ? {
# should be added to workflows runners not to workflow server
# annotations = {
Expand Down Expand Up @@ -37,7 +37,7 @@ locals {
controller = {
workflowDefaults = {
metadata = {
namespace = var.configuration.workflows_namespace
namespace = local.workflows_namespace
}
spec = {
serviceAccountName = "argo-workflow"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server:
baseHref: /argo/
singleNamespace: true
singleNamespace: false
useDefaultArtifactRepo: true
%{ if pgsql_enabled }
${controller}
Expand Down

0 comments on commit 7cedf1d

Please sign in to comment.