Skip to content

Commit

Permalink
fix: add keycloak-operator
Browse files Browse the repository at this point in the history
Signed-off-by: Raphaël Pinson <raphael.pinson@camptocamp.com>
  • Loading branch information
raphink committed Jan 6, 2022
1 parent 64cb638 commit 8f15d82
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,42 @@ resource "argocd_project" "this" {
}
}

resource "argocd_application" "operator" {
metadata {
name = "keycloak-operator"
namespace = var.argocd.namespace
}

spec {
project = argocd_project.this.metadata.0.name

source {
repo_url = "https://github.com/keycloak/keycloak-operator.git"
path = "deploy"
target_revision = "15.0.1"
helm {
values = ""
}
}

destination {
server = "https://kubernetes.default.svc"
namespace = var.namespace
}

sync_policy {
automated = {
prune = true
self_heal = true
}

sync_options = [
"CreateNamespace=true"
]
}
}
}

resource "argocd_application" "this" {
metadata {
name = "keycloak"
Expand Down Expand Up @@ -68,4 +104,6 @@ resource "argocd_application" "this" {
]
}
}

depends_on = [ argocd_application.operator ]
}

0 comments on commit 8f15d82

Please sign in to comment.