Skip to content

Commit c159cfc

Browse files
committed
Check for FeatureGates when ipFamily can be set to DualStack
Make sure that ipFamily can be set to DualStackIPv4Primary and DualStackIPv6Primary only when the platform based featuregates have been enabled.
1 parent be9fd95 commit c159cfc

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

pkg/types/aws/validation/featuregates.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,10 @@ func GatedFeatures(c *types.InstallConfig) []featuregates.GatedInstallConfigFeat
1818
Condition: c.AWS.UserProvisionedDNS == dns.UserProvisionedDNSEnabled,
1919
Field: field.NewPath("platform", "aws", "userProvisionedDNS"),
2020
},
21+
{
22+
FeatureGateName: features.FeatureGateAWSDualStackInstall,
23+
Condition: c.AWS.IPFamily.DualStackEnabled(),
24+
Field: field.NewPath("platform", "aws", "ipFamily"),
25+
},
2126
}
2227
}

pkg/types/azure/validation/featuregates.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,10 @@ func GatedFeatures(c *types.InstallConfig) []featuregates.GatedInstallConfigFeat
5757
Condition: azure.UserProvisionedDNS == dns.UserProvisionedDNSEnabled,
5858
Field: field.NewPath("platform", "azure", "userProvisionedDNS"),
5959
},
60+
{
61+
FeatureGateName: features.FeatureGateAzureDualStackInstall,
62+
Condition: azure.IPFamily.DualStackEnabled(),
63+
Field: field.NewPath("platform", "azure", "ipFamily"),
64+
},
6065
}
6166
}

0 commit comments

Comments
 (0)