Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/16239.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
container: fixed a bug in `google_container_node_pool` that prevented creation when `blue_green_settings` was specified
```
Original file line number Diff line number Diff line change
Expand Up @@ -1259,8 +1259,8 @@ func expandNodePool(d *schema.ResourceData, prefix string) (*container.NodePool,
return nil, fmt.Errorf("Blue-green upgrade settings may not be changed when blue-green strategy is not enabled")
}

if _, ok1 := blueGreenSettingsConfig["standard_rollout_policy"]; ok1 {
if _, ok2 := blueGreenSettingsConfig["autoscaled_rollout_policy"]; ok2 {
if s, ok1 := blueGreenSettingsConfig["standard_rollout_policy"]; ok1 && len(s.([]interface{})) > 0 {
if a, ok2 := blueGreenSettingsConfig["autoscaled_rollout_policy"]; ok2 && len(a.([]interface{})) > 0 {
return nil, fmt.Errorf("`standard_rollout_policy` and `autoscaled_rollout_policy` cannot be set at the same time")
}
}
Expand Down
Loading