Skip to content

Commit

Permalink
Merge pull request #4 from mbzomowski/test_branch
Browse files Browse the repository at this point in the history
test branch
  • Loading branch information
mbzomowski committed Sep 27, 2023
2 parents 957999a + e8820bd commit bd992eb
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tpu-ci/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
secretName: github-pat
resources:
- namespace: "flux-system"
- namespace: "arc-system"
2 changes: 1 addition & 1 deletion tpu-ci/gke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ variable "gke_password" {
}

variable "gke_num_nodes" {
default = 3
default = 2
description = "number of gke nodes"
}

Expand Down
10 changes: 10 additions & 0 deletions tpu-ci/k8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,13 @@ resource "kubernetes_manifest" "flux-terraform" {
]
}

resource "kubernetes_config_map" "configmap" {
metadata {
name = "branch-planner"
namespace = "flux-system"
}

data = {
"configmap.yaml" = "${file("${path.module}/configmap.yaml")}"
}
}
15 changes: 15 additions & 0 deletions tpu-ci/secret.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ resource "kubernetes_secret" "github-pat" {
github_token = var.GITHUB_TOKEN
}
}

resource "kubernetes_secret" "github-pat-flux" {
metadata {
name = "github-pat"
namespace = "flux-system"
}
depends_on = [
helm_release.arc-runner-set
]

data = {
github_token = var.GITHUB_TOKEN
}
}

0 comments on commit bd992eb

Please sign in to comment.