Skip to content

Commit

Permalink
fix: remove datapath provider from Autopilot modules (#1556)
Browse files Browse the repository at this point in the history
Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
  • Loading branch information
mastersingh24 and bharathkkb committed Feb 3, 2023
1 parent a69df21 commit ea012f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,10 @@ resource "google_container_cluster" "primary" {
}
{% endif %}
}

{% if autopilot_cluster != true %}

datapath_provider = var.datapath_provider
{% endif %}

{% if beta_cluster %}
networking_mode = "VPC_NATIVE"
Expand Down
2 changes: 0 additions & 2 deletions modules/beta-autopilot-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ resource "google_container_cluster" "primary" {

}

datapath_provider = var.datapath_provider

networking_mode = "VPC_NATIVE"
ip_allocation_policy {
cluster_secondary_range_name = var.ip_range_pods
Expand Down
2 changes: 0 additions & 2 deletions modules/beta-autopilot-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ resource "google_container_cluster" "primary" {

}

datapath_provider = var.datapath_provider

networking_mode = "VPC_NATIVE"
ip_allocation_policy {
cluster_secondary_range_name = var.ip_range_pods
Expand Down

0 comments on commit ea012f5

Please sign in to comment.