Skip to content

Commit

Permalink
Merge pull request #4503 from manuelbuil/fix_dualStack_bug
Browse files Browse the repository at this point in the history
[Release 1.21] Fix bug in dual-stack
  • Loading branch information
manuelbuil authored Nov 16, 2021
2 parents 93cf545 + 7de34a0 commit 6854470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cli/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ func validateNetworkConfiguration(serverConfig server.Config) error {
return errors.Wrap(err, "failed to validate cluster-dns")
}

if (serverConfig.ControlConfig.FlannelBackend != "none" || serverConfig.ControlConfig.DisableNPC == false) && (dualCluster || dualService) {
return errors.New("flannel CNI and network policy enforcement are not compatible with dual-stack operation; server must be restarted with --flannel-backend=none --disable-network-policy and an alternative CNI plugin deployed")
if (serverConfig.ControlConfig.DisableNPC == false) && (dualCluster || dualService) {
return errors.New("network policy enforcement is not compatible with dual-stack operation; server must be restarted with --disable-network-policy")
}
if dualDNS == true {
return errors.New("dual-stack cluster-dns is not supported")
Expand Down

0 comments on commit 6854470

Please sign in to comment.