Skip to content

Commit

Permalink
disable crc for ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
DockToFuture committed Oct 17, 2024
1 parent 74ef0ae commit 27ba0ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/controller/controlplane/valuesprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,12 @@ func getCRCChartValues(
checksums map[string]string,
scaledDown bool,
) (map[string]interface{}, error) {
mode := "ipv4"
if networkingConfig := cluster.Shoot.Spec.Networking; networkingConfig != nil {
if slices.Contains(networkingConfig.IPFamilies, v1beta1.IPFamilyIPv6) && !slices.Contains(networkingConfig.IPFamilies, v1beta1.IPFamilyIPv4) {
mode = "ipv6"
}
}
values := map[string]interface{}{
"enabled": true,
"replicas": extensionscontroller.GetControlPlaneReplicas(cluster, scaledDown, 1),
Expand All @@ -621,7 +627,7 @@ func getCRCChartValues(
enabled := cpConfig.CloudControllerManager != nil &&
cpConfig.CloudControllerManager.UseCustomRouteController != nil &&
*cpConfig.CloudControllerManager.UseCustomRouteController
if !enabled {
if !enabled || mode == "ipv6" {
values["replicas"] = 0
}

Expand Down

0 comments on commit 27ba0ec

Please sign in to comment.