Skip to content

Commit

Permalink
Removed deprecated fields in 2023-09-02-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
itay-grudev committed May 18, 2024
1 parent d78966e commit 573b24e
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions internal/services/containers/kubernetes_cluster_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3321,20 +3321,14 @@ func flattenKubernetesClusterWorkloadAutoscalerProfile(profile *managedclusters.
}

vpaEnabled := false
controlledValues := ""
updateMode := ""
if v := profile.VerticalPodAutoscaler; v != nil && v.Enabled {
vpaEnabled = v.Enabled
controlledValues = string(v.ControlledValues)
updateMode = string(v.UpdateMode)
}

return []interface{}{
map[string]interface{}{
"keda_enabled": kedaEnabled,
"vertical_pod_autoscaler_enabled": vpaEnabled,
"vertical_pod_autoscaler_update_mode": updateMode,
"vertical_pod_autoscaler_controlled_values": controlledValues,
"keda_enabled": kedaEnabled,
"vertical_pod_autoscaler_enabled": vpaEnabled,
},
}
}
Expand Down Expand Up @@ -4681,11 +4675,6 @@ func flattenKubernetesClusterIngressProfile(input *managedclusters.ManagedCluste
return []interface{}{}
}

dnsZoneId := ""
if v := input.WebAppRouting.DnsZoneResourceId; v != nil {
dnsZoneId = *v
}

webAppRoutingIdentity := []interface{}{}

if v := input.WebAppRouting.Identity; v != nil {
Expand All @@ -4694,7 +4683,6 @@ func flattenKubernetesClusterIngressProfile(input *managedclusters.ManagedCluste

return []interface{}{
map[string]interface{}{
"dns_zone_id": dnsZoneId,
"web_app_routing_identity": webAppRoutingIdentity,
},
}
Expand Down

0 comments on commit 573b24e

Please sign in to comment.