Skip to content

Commit

Permalink
Update resource_container_cluster.go.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayimeow authored Oct 26, 2023
1 parent 307099b commit f6747c4
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5158,15 +5158,12 @@ func expandGatewayApiConfig(configured interface{}) *container.GatewayAPIConfig
}

func expandFleet(configured interface{}) *container.Fleet {
l := configured.([]interface{})
if len(l) == 0 || l[0] == nil {
return nil
}

config := l[0].(map[string]interface{})
return &container.Fleet{
Project: config["project"].(string),
}
l := configured.([]interface{})
v := &container.Fleet{}

config := l[0].(map[string]interface{})
v.Project = config["project"].(string)
return v
}

func expandEnableK8sBetaApis(configured interface{}, enabledAPIs []string) *container.K8sBetaAPIConfig {
Expand Down

0 comments on commit f6747c4

Please sign in to comment.