Skip to content

Commit

Permalink
Fix ip_alloc error (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjanr authored Jan 14, 2025
1 parent bfbe16c commit 0e8d509
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/cluster/internal/validate/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@ func validateGCP(spec commons.KeosSpec, providerSecrets map[string]string) error
// ip policy fields are empty return nil
return nil
} else {
if !ipPolicy.UseIPAliases {
return errors.New("spec.control_plane.gcp.ip_allocation_policy: 'if ip_allocation_policy is provided, fill in the fields'")
}
if (ipPolicy.ClusterSecondaryRangeName != "" && ipPolicy.ServicesSecondaryRangeName != "") &&
(ipPolicy.ClusterIpv4CidrBlock != "" || ipPolicy.ServicesIpv4CidrBlock != "") {
return errors.New("spec.control_plane.gcp.ip_allocation_policy: 'if cluster_secondary_range_name and services_secondary_range_name are provided, cluster_ipv4_cidr_block and services_ipv4_cidr_block must not be set'")
Expand Down

0 comments on commit 0e8d509

Please sign in to comment.