// We want to suppress diffs for empty/disabled private cluster config.
We want to suppress diffs for empty/disabled private cluster config.
// We want to suppress diffs for empty / disabled private cluster config .
func containerClusterPrivateClusterConfigSuppress(k, old, new string, d *schema.ResourceData) bool {
	o, n := d.GetChange("private_cluster_config.0.enable_private_endpoint")
	suppressEndpoint := !o.(bool) && !n.(bool)
	o, n = d.GetChange("private_cluster_config.0.enable_private_nodes")
	suppressNodes := !o.(bool) && !n.(bool)
	if k == "private_cluster_config.0.enable_private_endpoint" {
		return suppressEndpoint
	} else if k == "private_cluster_config.0.enable_private_nodes" {
		return suppressNodes
	} else if k == "private_cluster_config.#" {
		return suppressEndpoint && suppressNodes
	}
	return false
}
func containerClusterPrivateClusterConfigSuppress ( k , old , new string , d * schema . ResourceData ) bool { o , n := d . GetChange ( " " ) suppressEndpoint := ! o . ( bool ) && ! n . ( bool ) o , n = d . GetChange ( " " ) suppressNodes := ! o . ( bool ) && ! n . ( bool ) if k == " " { return suppressEndpoint } else if k == " " { return suppressNodes } else if k == " " { return suppressEndpoint && suppressNodes } return false }
We want to suppress diffs for empty/disabled private cluster config.
We want to suppress diffs for empty / disabled private cluster config .