Skip to content

Commit

Permalink
feat: optional generation of kubeconfig for GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
qdelamea-aneo committed May 7, 2024
1 parent c50dca3 commit 226d487
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/quick-deploy/gcp/gke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "gke" {
subnetwork_cidr = module.vpc.gke_subnet_cidr_block
ip_range_pods = module.vpc.gke_subnet_pods_range_name
ip_range_services = module.vpc.gke_subnet_svc_range_name
kubeconfig_path = abspath(var.gke.kubeconfig_file)
kubeconfig_path = var.gke.generate_kubeconfig ? abspath(var.gke.kubeconfig_file) : null
service_account_name = local.gke_name
database_encryption = [
{
Expand Down
1 change: 1 addition & 0 deletions infrastructure/quick-deploy/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ variable "gke" {
services_cidr_block = optional(string, "172.17.17.0/24")
}), {})
namespace = optional(string, "armonik")
generate_kubeconfig = optional(bool, true)
kubeconfig_file = optional(string, "generated/kubeconfig")
enable_public_gke_access = optional(bool, true)
enable_gke_autopilot = optional(bool, false)
Expand Down

0 comments on commit 226d487

Please sign in to comment.