Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

Commit 09cd943

Browse files
committed
0.1.48: Only need to check client
1 parent df60d3d commit 09cd943

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |spec|
22
spec.name = 'kubinator'
3-
spec.version = '0.1.47'
3+
spec.version = '0.1.48'
44
spec.summary = "Deployment automation for Kubernetes"
55
spec.authors = ["Patrick Crummett"]
66
spec.homepage = 'https://github.com/phR0ze/kubinator'

kubinator

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Kubinator
186186
#---------------------------------------------------------------------------
187187
puts(":: Validating the K8s host environment".colorize(:cyan))
188188
Log.die("Ensure 'kubectl' is installed and on the $PATH") unless FileUtils.exec?('kubectl')
189-
host_k8sver = `kubectl version`[/GitVersion.*v([\d]+\.[\d]+\.[\d]+)/, 1]
189+
host_k8sver = `kubectl version --client`[/GitVersion.*v([\d]+\.[\d]+\.[\d]+)/, 1]
190190
!puts("Kubectl needs to be version #{@k8sver} or higher".colorize(:red)) and
191191
exit unless Gem::Version.new(host_k8sver) >= Gem::Version.new(@k8sver)
192192
puts("Host K8s Version: #{host_k8sver}".colorize(:green))
@@ -203,7 +203,7 @@ class Kubinator
203203
node_k8sver = nil
204204
puts("Nodes: #{ips * ', '}".colorize(:cyan))
205205
Net::SSH.start(ips.first, @user, password:@pass, verify_host_key: :never){|ssh|
206-
node_k8sver = ssh.exec!("kubectl version")[/GitVersion.*v([\d]+\.[\d]+\.[\d]+)/, 1]
206+
node_k8sver = ssh.exec!("kubectl version --client")[/GitVersion.*v([\d]+\.[\d]+\.[\d]+)/, 1]
207207
!puts("Node K8s needs to be version #{@k8sver} or higher".colorize(:red)) and
208208
exit unless Gem::Version.new(node_k8sver) >= Gem::Version.new(@k8sver)
209209
puts("Node K8s Version: #{node_k8sver}".colorize(:green))

0 commit comments

Comments
 (0)