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

feat: remove helm values output #34

Merged
merged 2 commits into from
Nov 4, 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
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