Skip to content

Commit

Permalink
fix(storage):fmt
Browse files Browse the repository at this point in the history
Signed-off-by: soulseen <zhuxiaoyang1996@gmail.com>
  • Loading branch information
soulseen committed Mar 7, 2021
1 parent ca3232b commit 88f1936
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/cluster/controllers/storage/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ func (m *MinIOController) checkRedirectUpdate() (bool, error) {

desiredingress, err := m.generateIngress()

if currntIngress.Spec.Rules[0].Host != desiredingress.Spec.Rules[0].Host {
return true, err
}

if currntIngress.Spec.Rules[0].IngressRuleValue.HTTP.Paths[0] != desiredingress.Spec.Rules[0].IngressRuleValue.HTTP.Paths[0] {
return true, err
}

if currntIngress.Spec.TLS[0].Hosts[0] != desiredingress.Spec.TLS[0].Hosts[0] {
return true, err
}

if !equality.Semantic.DeepEqual(currntIngress.DeepCopy().Spec, desiredingress.DeepCopy().Spec) {
return true, err
}
Expand Down

0 comments on commit 88f1936

Please sign in to comment.