Skip to content

Commit

Permalink
Merge pull request #163 from kbst/metadata-output
Browse files Browse the repository at this point in the history
Add current_metadata output to all cluster modules
  • Loading branch information
pst authored Mar 9, 2021
2 parents 58a216b + 3bbac2c commit cce1239
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/cluster-local/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ output "current_config" {
value = module.configuration.merged[terraform.workspace]
}

output "current_metadata" {
value = module.cluster_metadata
}

output "kubeconfig" {
sensitive = true
value = module.cluster.kubeconfig
Expand Down
4 changes: 4 additions & 0 deletions aws/cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ output "current_config" {
value = module.configuration.merged[terraform.workspace]
}

output "current_metadata" {
value = module.cluster_metadata
}

output "kubeconfig" {
sensitive = true
value = module.cluster.kubeconfig
Expand Down
4 changes: 4 additions & 0 deletions azurerm/cluster-local/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ output "current_config" {
value = module.configuration.merged[terraform.workspace]
}

output "current_metadata" {
value = module.cluster_metadata
}

output "kubeconfig" {
sensitive = true
value = module.cluster.kubeconfig
Expand Down
4 changes: 4 additions & 0 deletions azurerm/cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ output "current_config" {
value = module.configuration.merged[terraform.workspace]
}

output "current_metadata" {
value = module.cluster_metadata
}

output "kubeconfig" {
sensitive = true
value = module.cluster.kubeconfig
Expand Down
4 changes: 4 additions & 0 deletions google/cluster-local/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ output "current_config" {
value = module.configuration.merged[terraform.workspace]
}

output "current_metadata" {
value = module.cluster_metadata
}

output "kubeconfig" {
sensitive = true
value = module.cluster.kubeconfig
Expand Down
4 changes: 4 additions & 0 deletions google/cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ output "current_config" {
value = module.configuration.merged[terraform.workspace]
}

output "current_metadata" {
value = module.cluster_metadata
}

output "kubeconfig" {
sensitive = true
value = module.cluster.kubeconfig
Expand Down
4 changes: 4 additions & 0 deletions kind/cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ output "current_config" {
value = module.configuration.merged[terraform.workspace]
}

output "current_metadata" {
value = module.cluster_metadata
}

output "kubeconfig" {
sensitive = true
value = module.cluster.kubeconfig
Expand Down

0 comments on commit cce1239

Please sign in to comment.