Skip to content

Commit ea012f5

Browse files
fix: remove datapath provider from Autopilot modules (#1556)
Signed-off-by: Gari Singh <gari.r.singh@gmail.com> Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
1 parent a69df21 commit ea012f5

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

autogen/main/cluster.tf.tmpl

+3-1
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,10 @@ resource "google_container_cluster" "primary" {
298298
}
299299
{% endif %}
300300
}
301-
301+
{% if autopilot_cluster != true %}
302+
302303
datapath_provider = var.datapath_provider
304+
{% endif %}
303305

304306
{% if beta_cluster %}
305307
networking_mode = "VPC_NATIVE"

modules/beta-autopilot-private-cluster/cluster.tf

-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ resource "google_container_cluster" "primary" {
119119

120120
}
121121

122-
datapath_provider = var.datapath_provider
123-
124122
networking_mode = "VPC_NATIVE"
125123
ip_allocation_policy {
126124
cluster_secondary_range_name = var.ip_range_pods

modules/beta-autopilot-public-cluster/cluster.tf

-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ resource "google_container_cluster" "primary" {
119119

120120
}
121121

122-
datapath_provider = var.datapath_provider
123-
124122
networking_mode = "VPC_NATIVE"
125123
ip_allocation_policy {
126124
cluster_secondary_range_name = var.ip_range_pods

0 commit comments

Comments
 (0)