Skip to content

Commit

Permalink
DEV2-7020: modifying source (#68)
Browse files Browse the repository at this point in the history
* adding ingress ip + using moduels/cluster as source

* terraform-docs: automated action

* trig ci

* fixing source dir

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
garyb9 and github-actions[bot] authored Aug 8, 2024
1 parent f0f3b08 commit 4a35e70
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions examples/cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ This is an example of managing Tabnine cluster
| <a name="output_db_cert_base64"></a> [db\_cert\_base64](#output\_db\_cert\_base64) | Database server certificate (base64 encoded) |
| <a name="output_db_private_key_base64"></a> [db\_private\_key\_base64](#output\_db\_private\_key\_base64) | Database client private key (base64 encoded) |
| <a name="output_db_url"></a> [db\_url](#output\_db\_url) | n/a |
| <a name="output_ingress_ip"></a> [ingress\_ip](#output\_ingress\_ip) | IP address of the Ingress controller |
| <a name="output_redis_ca_base64"></a> [redis\_ca\_base64](#output\_redis\_ca\_base64) | n/a |
| <a name="output_redis_url"></a> [redis\_url](#output\_redis\_url) | n/a |
<!-- END_TF_DOCS -->
14 changes: 7 additions & 7 deletions examples/cluster/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Tabnine cluster module
module "gke_cluster_tabnine" {
source = "codota/gke-tabnine/google//modules/cluster"
# source = "codota/gke-tabnine/google//modules/cluster"
source = "../../modules/cluster"
project_id = var.project_id
region = var.region
zones = var.zones
Expand Down Expand Up @@ -41,9 +42,8 @@ output "db_private_key_base64" {
sensitive = true
}

# output "ingress_ip" {
# description = "IP address of the Ingress controller"
# value = module.gke_cluster_tabnine.ingress_ip
# sensitive = false
# }

output "ingress_ip" {
description = "IP address of the Ingress controller"
value = module.gke_cluster_tabnine.ingress_ip
sensitive = false
}
2 changes: 1 addition & 1 deletion examples/cluster/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ variable "gke_master_authorized_networks" {
cidr_block = string,
display_name = string
}))
}
}

0 comments on commit 4a35e70

Please sign in to comment.