File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ ```release-note:bug
2+ container: fixed unable to update `authenticator_groups_config` on `google_container_cluster`
3+ ```
Original file line number Diff line number Diff line change @@ -4274,9 +4274,16 @@ func expandContainerClusterAuthenticatorGroupsConfig(configured interface{}) *co
42744274 }
42754275
42764276 config := l [0 ].(map [string ]interface {})
4277- return & container.AuthenticatorGroupsConfig {
4278- SecurityGroup : config ["security_group" ].(string ),
4277+ result := & container.AuthenticatorGroupsConfig {}
4278+ if securityGroup , ok := config ["security_group" ]; ok {
4279+ if securityGroup == nil || securityGroup .(string ) == "" {
4280+ result .Enabled = false
4281+ } else {
4282+ result .Enabled = true
4283+ result .SecurityGroup = securityGroup .(string )
4284+ }
42794285 }
4286+ return result
42804287}
42814288
42824289func expandNodePoolDefaults (configured interface {}) * container.NodePoolDefaults {
You can’t perform that action at this time.
0 commit comments