Skip to content

Commit

Permalink
fix a crash on gke (#5295) (#10290)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Oct 8, 2021
1 parent 162f94f commit b3cbcaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/5295.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
container: fixed a crash on `monitoring_config` of `google_container_cluster`
```
2 changes: 1 addition & 1 deletion google/resource_container_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -3047,7 +3047,7 @@ func expandMonitoringConfig(configured interface{}) *containerBeta.MonitoringCon
config := l[0].(map[string]interface{})
return &containerBeta.MonitoringConfig{
ComponentConfig: &containerBeta.MonitoringComponentConfig{
EnableComponents: config["enable_components"].([]string),
EnableComponents: convertStringArr(config["enable_components"].([]interface{})),
},
}
}
Expand Down

0 comments on commit b3cbcaf

Please sign in to comment.