diff --git a/google/resource_container_cluster.go b/google/resource_container_cluster.go index db10ad243b0..1f7e035e24d 100644 --- a/google/resource_container_cluster.go +++ b/google/resource_container_cluster.go @@ -1540,6 +1540,16 @@ func expandPodSecurityPolicyConfig(configured interface{}) *containerBeta.PodSec return nil } +func expandDefaultMaxPodsConstraint(v interface{}) *containerBeta.MaxPodsConstraint { + if v == nil { + return nil + } + + return &containerBeta.MaxPodsConstraint{ + MaxPodsPerNode: int64(v.(int)), + } +} + func flattenNetworkPolicy(c *containerBeta.NetworkPolicy) []map[string]interface{} { result := []map[string]interface{}{} if c != nil {