Skip to content

Commit

Permalink
make datapath_provider ForceNew (#6657) (#12887)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward Sun <sunedward@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
Co-authored-by: Edward Sun <sunedward@google.com>
  • Loading branch information
modular-magician and Edward Sun committed Oct 26, 2022
1 parent d47c4d6 commit a8e6779
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/6657.txt
@@ -0,0 +1,3 @@
```release-note:bug
container: fixed unable to update `datapath_provider` on `google_container_cluster` so that modifying the `datapath_provider` field will recreating the resource now
```
1 change: 1 addition & 0 deletions google/resource_container_cluster.go
Expand Up @@ -1206,6 +1206,7 @@ func resourceContainerCluster() *schema.Resource {
"datapath_provider": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Description: `The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.`,
ValidateFunc: validation.StringInSlice([]string{"DATAPATH_PROVIDER_UNSPECIFIED", "LEGACY_DATAPATH", "ADVANCED_DATAPATH"}, false),
Expand Down

0 comments on commit a8e6779

Please sign in to comment.