Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚓ Add CaDeT Actions Runner Helm release #6341

Merged
merged 1 commit into from
May 30, 2024
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
data "aws_secretsmanager_secret_version" "actions_runners_create_a_derived_table" {
count = terraform.workspace == "analytical-platform-compute-production" ? 1 : 0

secret_id = module.actions_runners_create_a_derived_table_secret[0].secret_id
}

resource "helm_release" "actions_runner_mojas_create_a_derived_table" {
count = terraform.workspace == "analytical-platform-compute-production" ? 1 : 0

/* https://github.com/ministryofjustice/analytical-platform-actions-runner */
name = "actions-runner-mojas-create-a-derived-table"
repository = "oci://ghcr.io/ministryofjustice/analytical-platform-charts"
version = "2.316.1"
chart = "actions-runner"
namespace = kubernetes_namespace.actions_runners[0].metadata[0].name
values = [
templatefile(
"${path.module}/src/helm/values/actions-runners/create-a-derived-table/values.yml.tftpl",
{
replicaCount = 2
github_organisation = "moj-analytical-services"
github_repository = "create-a-derived-table"
github_token = data.aws_secretsmanager_secret_version.actions_runners_create_a_derived_table[0].secret_string
github_runner_labels = "analytical-platform"
eks_role_arn = "arn:aws:iam::593291632749:role/create-a-derived-table"
}
)
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module "actions_runners_create_a_derived_table" {
module "actions_runners_create_a_derived_table_secret" {
#checkov:skip=CKV_TF_1:Module registry does not support commit hashes for versions
#checkov:skip=CKV_TF_2:Module registry does not support tags for versions

Expand All @@ -20,3 +20,8 @@ module "actions_runners_create_a_derived_table" {
}
)
}

moved {
from = module.actions_runners_create_a_derived_table
to = module.actions_runners_create_a_derived_table_secret
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
replicaCount: ${replicaCount}

github:
organisation: ${github_organisation}
repository: ${github_repository}
token: ${github_token}
runner:
labels: ${github_runner_labels}

serviceAccount:
annotations:
eks.amazonaws.com/role-arn: ${eks_role_arn}
Loading