Skip to content

Commit

Permalink
Send empty GKE objects explicitly (GoogleCloudPlatform#11978)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson authored and BBBmau committed Oct 23, 2024
1 parent c27a93f commit 7ec7702
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1759,6 +1759,7 @@ func nodePoolUpdate(d *schema.ResourceData, meta interface{}, nodePoolInfo *Node
d.Get(prefix + "node_config.0.workload_metadata_config")),
}
if req.WorkloadMetadataConfig == nil {
req.WorkloadMetadataConfig = &container.WorkloadMetadataConfig{}
req.ForceSendFields = []string{"WorkloadMetadataConfig"}
}
updateF := func() error {
Expand Down Expand Up @@ -1826,6 +1827,7 @@ func nodePoolUpdate(d *schema.ResourceData, meta interface{}, nodePoolInfo *Node
d.Get(prefix + "node_config.0.kubelet_config")),
}
if req.KubeletConfig == nil {
req.KubeletConfig = &container.NodeKubeletConfig{}
req.ForceSendFields = []string{"KubeletConfig"}
}
updateF := func() error {
Expand Down Expand Up @@ -1859,6 +1861,7 @@ func nodePoolUpdate(d *schema.ResourceData, meta interface{}, nodePoolInfo *Node
d.Get(prefix + "node_config.0.linux_node_config")),
}
if req.LinuxNodeConfig == nil {
req.LinuxNodeConfig = &container.LinuxNodeConfig{}
req.ForceSendFields = []string{"LinuxNodeConfig"}
}
updateF := func() error {
Expand Down

0 comments on commit 7ec7702

Please sign in to comment.