mirror of
https://github.com/rancher/rke.git
synced 2025-07-12 14:48:58 +00:00
added check for empty updatestrategy while setting dns addon defaults
This commit is contained in:
parent
cfa58c8ac4
commit
ab5a08c134
@ -952,7 +952,8 @@ func setDNSDeploymentAddonDefaults(updateStrategy *v3.DeploymentStrategy, dnsPro
|
||||
coreDNSMaxUnavailable, coreDNSMaxSurge = intstr.FromInt(1), intstr.FromInt(0)
|
||||
kubeDNSMaxSurge, kubeDNSMaxUnavailable = intstr.FromString("10%"), intstr.FromInt(0)
|
||||
)
|
||||
if updateStrategy != nil && updateStrategy.Strategy != appsv1.RollingUpdateDeploymentStrategyType {
|
||||
if updateStrategy != nil && updateStrategy.Strategy != appsv1.RollingUpdateDeploymentStrategyType &&
|
||||
updateStrategy.Strategy != "" {
|
||||
return updateStrategy
|
||||
}
|
||||
switch dnsProvider {
|
||||
|
Loading…
Reference in New Issue
Block a user