Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.terraform.lock.hcl
.terraform/
terraform.tfvars
*.tfplan
22 changes: 21 additions & 1 deletion atlantis.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
version: 3
automerge: true
projects:
- dir: projects/dev
- dir: projects/gcp
workflow: default
autoplan:
when_modified: ["*.tf", "*.yaml", "*.json", "../../modules/**/*.tf", "../../modules/**/*.yaml", "../../modules/**/*.json"]
enabled: true
- dir: projects/core
workflow: default
autoplan:
when_modified: ["*.tf", "*.yaml", "*.json", "../../modules/**/*.tf", "../../modules/**/*.yaml", "../../modules/**/*.json"]
enabled: true
- dir: projects/core/config
workflow: default
autoplan:
when_modified: ["*.tf", "*.yaml", "*.json", "../../../modules/**/*.tf", "../../../modules/**/*.yaml", "../../../modules/**/*.json"]
enabled: true
- dir: projects/domain
workflow: default
autoplan:
when_modified: ["*.tf", "*.yaml", "*.json", "../../../modules/**/*.tf", "../../../modules/**/*.yaml", "../../../modules/**/*.json"]
enabled: true
- dir: projects/infra
workflow: default
autoplan:
when_modified: ["*.tf", "*.yaml", "*.json", "../../../modules/**/*.tf", "../../../modules/**/*.yaml", "../../../modules/**/*.json"]
enabled: true
24 changes: 24 additions & 0 deletions modules/gcp/gke/namespace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,27 @@ resource "kubernetes_namespace" "dex" {
name = "dex"
}
}

resource "kubernetes_namespace" "atlantis" {
metadata {
name = "atlantis"
}
}

resource "kubernetes_namespace" "kiali" {
metadata {
name = "kiali"
}
}

resource "kubernetes_namespace" "open-webui" {
metadata {
name = "open-webui"
}
}

resource "kubernetes_namespace" "redis" {
metadata {
name = "redis"
}
}
16 changes: 16 additions & 0 deletions modules/infra/atlantis/gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: atlantis-vs
namespace: atlantis
spec:
hosts:
- atlantis.goboolean.io
gateways:
- istio-system/istio-ingressgateway
http:
- route:
- destination:
host: atlantis.atlantis.svc.cluster.local
port:
number: 80
27 changes: 27 additions & 0 deletions modules/infra/atlantis/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
locals {
values_yaml = templatefile("${path.module}/values.yaml", {
atlantis_url = "https://atlantis.goboolean.io"
project_id = var.project_id
github_token = var.github_token
github_username = var.github_username
webhook_secret = var.webhook_secret
username = "username"
password = "password"
})
}

resource "helm_release" "atlantis" {
name = "atlantis"
repository = "https://runatlantis.github.io/helm-charts"
chart = "atlantis"
version = "4.4.0"
namespace = "atlantis"

values = [local.values_yaml]

timeout = 120
}

resource "kubernetes_manifest" "atlantis_gateway" {
manifest = yamldecode(file("${path.module}/gateway.yaml"))
}
Loading