This repository was archived by the owner on Jan 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Gem ::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'
Original file line number Diff line number Diff 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 ) )
You can’t perform that action at this time.
0 commit comments