Skip to content

Commit

Permalink
Merge pull request #34 from sparkfabrik/remove_helm_output
Browse files Browse the repository at this point in the history
feat: remove helm values output
  • Loading branch information
Stevesibilia authored Nov 4, 2024
2 parents 15f0ab0 + 5d67e1c commit 36f77b7
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 112 deletions.
6 changes: 1 addition & 5 deletions examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ terraform {
source = "hashicorp/kubernetes"
version = ">= 2.19"
}
template = {
source = "hashicorp/template"
version = ">= 2.2.0"
}
random = {
source = "hashicorp/random"
source = "hashicorp/random"
version = "3.6.2"
}
}
Expand Down
12 changes: 0 additions & 12 deletions examples/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,3 @@ output "drupal_apps_bucket_credentials" {
description = "Drupal apps bucket credentials for each Drupal project."
value = module.drupal_resources.drupal_apps_bucket_credentials
}

output "helm_values_for_buckets" {
sensitive = true
description = "Helm values for buckets to be entered into the gitlab pipeline"
value = module.drupal_resources.helm_values_for_buckets
}

output "helm_values_for_databases" {
sensitive = true
description = "Helm values for databases to be entered into the gitlab pipeline"
value = module.drupal_resources.helm_values_for_databases
}
26 changes: 0 additions & 26 deletions files/template/helm_bucket.tpl

This file was deleted.

26 changes: 0 additions & 26 deletions files/template/helm_database.tpl

This file was deleted.

12 changes: 0 additions & 12 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@ output "drupal_apps_bucket_credentials" {
value = module.drupal_buckets[*].buckets_access_credentials
}

output "drupal_apps_helm_values_for_buckets" {
sensitive = true
description = "Output helm values to be used for buckets for each Drupal project."
value = data.template_file.helm_values_for_buckets
}

output "drupal_apps_helm_values_for_databases" {
sensitive = true
description = "Output helm values to be used for databases for each Drupal project."
value = data.template_file.helm_values_for_databases
}

output "details_of_used_tag_keys" {
description = "Details of the tag keys passed to this module."
value = module.drupal_buckets[*].details_of_used_tag_keys
Expand Down
26 changes: 0 additions & 26 deletions secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,6 @@ locals {
} : {}
}

data "template_file" "helm_values_for_buckets" {
for_each = {
for o in local.map_of_drupal_buckets : o.name => o
if var.create_buckets == true
}

template = templatefile("${path.module}/files/template/helm_bucket.tpl",
{
bucket_secret_name = kubernetes_secret.bucket_secret_name[each.key].metadata[0].name
}
)
}

data "template_file" "helm_values_for_databases" {
for_each = {
for o in local.map_of_drupal_databases : o.database => o
if var.create_databases_and_users == true
}

template = templatefile("${path.module}/files/template/helm_database.tpl",
{
database_secret_name = kubernetes_secret.database_secret_name[each.key].metadata[0].name
}
)
}

resource "kubernetes_secret" "bucket_secret_name" {
for_each = {
for o in local.map_of_drupal_buckets : o.name => o
Expand Down
6 changes: 1 addition & 5 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ terraform {
source = "hashicorp/kubernetes"
version = ">= 2.19"
}
template = {
source = "hashicorp/template"
version = ">= 2.2.0"
}
random = {
source = "hashicorp/random"
source = "hashicorp/random"
version = "3.6.2"
}
}
Expand Down

0 comments on commit 36f77b7

Please sign in to comment.