Skip to content

Commit

Permalink
Add conflictswith on autopilo to node config (#4674) (#8905)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Apr 14, 2021
1 parent aa549f1 commit ec9fa15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/4674.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
container: fixed a bug that allowed specifying `node_config` on `google_container_cluster` when autopilot is used
```
2 changes: 2 additions & 0 deletions google/resource_container_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func clusterSchemaNodeConfig() *schema.Schema {
changeFieldSchemaToForceNew(sch)
}
}
// Autopilot is only applicable for container cluster
nodeConfigSch.ConflictsWith = []string{"enable_autopilot"}
return nodeConfigSch
}

Expand Down

0 comments on commit ec9fa15

Please sign in to comment.