Skip to content

Commit

Permalink
Fix nodeNetwork GCPManagedMachinePool validations
Browse files Browse the repository at this point in the history
  • Loading branch information
kahun committed Dec 15, 2023
1 parent cadb9b9 commit da72b63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions exp/api/v1beta1/gcpmanagedmachinepool_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ func (r *GCPManagedMachinePool) validateImmutable(old *GCPManagedMachinePool) fi
appendErrorIfMutated(old.Spec.LocalSsdCount, r.Spec.LocalSsdCount, "localSsdCount", &allErrs)
appendErrorIfMutated(old.Spec.Management, r.Spec.Management, "management", &allErrs)
appendErrorIfMutated(old.Spec.MaxPodsPerNode, r.Spec.MaxPodsPerNode, "maxPodsPerNode", &allErrs)
appendErrorIfMutated(old.Spec.NodeNetwork.PodRangeName, r.Spec.NodeNetwork.PodRangeName, "podRangeName", &allErrs)
appendErrorIfMutated(old.Spec.NodeNetwork.CreatePodRange, r.Spec.NodeNetwork.CreatePodRange, "createPodRange", &allErrs)
appendErrorIfMutated(old.Spec.NodeNetwork.PodRangeCidrBlock, r.Spec.NodeNetwork.PodRangeCidrBlock, "podRangeCidrBlock", &allErrs)
appendErrorIfMutated(old.Spec.NodeNetwork, r.Spec.NodeNetwork, "nodeNetwork", &allErrs)
appendErrorIfMutated(old.Spec.NodeSecurity, r.Spec.NodeSecurity, "nodeSecurity", &allErrs)

return allErrs
Expand Down

0 comments on commit da72b63

Please sign in to comment.