Skip to content

Commit

Permalink
feat: keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Dec 31, 2023
1 parent 80d775f commit 677d1bc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 35 deletions.
62 changes: 31 additions & 31 deletions application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,37 @@
# }
#}

#resource "argocd_application" "keycloak" {
# metadata {
# name = "keycloak"
# namespace = "guardian"
# }
# spec {
# project = argocd_project.guardian.metadata[0].name
#
# source {
# repo_url = var.repo_url
# target_revision = "HEAD"
# path = "keycloak/prod"
# plugin {
# name = "avp-kustomize"
# env {
# name = "APP_REPO"
# value = "NaturalSelectionLabs/Hephaestus"
# }
# env {
# name = "AVP_SECRET"
# value = "guardian:avp-prod"
# }
# }
# }
#
# destination {
# server = argocd_cluster.prod.server
# namespace = "guardian"
# }
# }
#}
resource "argocd_application" "keycloak" {
metadata {
name = "keycloak"
namespace = "guardian"
}
spec {
project = argocd_project.guardian.metadata[0].name

source {
repo_url = var.repo_url
target_revision = "HEAD"
path = "keycloak/prod"
plugin {
name = "avp-kustomize"
env {
name = "APP_REPO"
value = "NaturalSelectionLabs/Hephaestus"
}
env {
name = "AVP_SECRET"
value = "guardian:avp-prod"
}
}
}

destination {
server = argocd_cluster.prod.server
namespace = "guardian"
}
}
}

resource "argocd_application" "jaeger" {
metadata {
Expand Down
4 changes: 2 additions & 2 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "argocd_cluster" "dev" {
}

lifecycle {
ignore_changes = ["config"]
ignore_changes = [config]
}
}

Expand All @@ -36,7 +36,7 @@ resource "argocd_cluster" "prod" {
}

lifecycle {
ignore_changes = ["config"]
ignore_changes = [config]
}
}

Expand Down
2 changes: 1 addition & 1 deletion keycloak/prod/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: keycloak-db-creds
namespace: guardian
annotations:
avp.kubernetes.io/path: "kv/data/guardian/keycloak-db-creds"
avp.kubernetes.io/path: "kv/data/guardian/keycloak"
type: Opaque
stringData:
username: "<username>"
Expand Down
1 change: 0 additions & 1 deletion vault/prod/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
namespace: guardian
spec:
entryPoints:
- web
- websecure
routes:
- match: Host(`vault.prod.naturalselectionlabs.com`)
Expand Down

0 comments on commit 677d1bc

Please sign in to comment.