Skip to content

Commit

Permalink
fix version check regex (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnummelin authored and jakolehm committed Nov 29, 2018
1 parent d42f4d9 commit ffe9c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pharos/phases/upgrade_master.rb
Expand Up @@ -13,7 +13,7 @@ def upgrade?
file = ssh.file('/etc/kubernetes/manifests/kube-apiserver.yaml')
return false unless file.exist?

match = file.read.match(/kube-apiserver:v(.+)/)
match = file.read.match(/kube-apiserver.*:v(.+)/)
current_major_minor = parse_major_minor(match[1])
new_major_minor = parse_major_minor(Pharos::KUBE_VERSION)
return false if current_major_minor == new_major_minor
Expand Down

0 comments on commit ffe9c7f

Please sign in to comment.