Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to update authenticator_groups_config #6755

Merged
merged 3 commits into from
Nov 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3940,6 +3940,7 @@ func expandAuthenticatorGroupsConfig(configured interface{}) *container.Authenti
return result
}


func expandNotificationConfig(configured interface{}) *container.NotificationConfig {
l := configured.([]interface{})
if len(l) == 0 || l[0] == nil {
Expand Down Expand Up @@ -4359,9 +4360,16 @@ func expandContainerClusterAuthenticatorGroupsConfig(configured interface{}) *co
}

config := l[0].(map[string]interface{})
return &container.AuthenticatorGroupsConfig{
SecurityGroup: config["security_group"].(string),
result := &container.AuthenticatorGroupsConfig{}
if securityGroup, ok := config["security_group"]; ok {
if securityGroup == nil || securityGroup.(string) == "" {
result.Enabled = false
} else {
result.Enabled = true
result.SecurityGroup = securityGroup.(string)
}
}
return result
}

func expandNodePoolDefaults(configured interface{}) *container.NodePoolDefaults {
Expand Down