minfra-cli 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 062b08fed3f437e66cba2ea56351bf02e5eb6a7b63d3444be0f1b4251e72f5db
4
- data.tar.gz: 0147da78b9f61955e9a5c180a0c6d8a8118c7a66d37cc6c745385e0827de9bfe
3
+ metadata.gz: 16d7979548068a14a297be13086588549af443c92b2e34aad122cd2235fd4ed5
4
+ data.tar.gz: 047e86635b52285501a533c2c87b36187025382dbf7429e6bfe0b17b0b4a9fc8
5
5
  SHA512:
6
- metadata.gz: b089c62ba6c7ee464f540324eeb8820e4a5ced14a0f06fdd78afa814dc5b3b1a32408933a34e769ed6f4493cb9ffba3b59d0d02c1f3cb5f48bd073b8eb1cc3bf
7
- data.tar.gz: 2941ebd620a97afd4294757a3e28b7b49d669e30703609527d11a2b9ad43aab7410593810bfd127e4a91e118677dd9e8ea561676d41e499907c5549853f41381
6
+ metadata.gz: 60d8a24e419d98ef0609da5d09d356a2ac4d01920d79e96ff80a28c6917afa22f09dcfc99138fe345375ddb5f282906e9339b692e49dba01fc93bcc072e6b52a
7
+ data.tar.gz: 29324defe80574b1057cad503bfc15919cde0e6ae04d250bb6a346bacdb7e6612af5dccdadd01fc563ed962bf5328741e024d3c61310aec40c1505e10169fd74
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ # 1.4.1
2
+ * kube command supports port-foward and finds the first fuzzy podname
1
3
  # 1.4.0
2
4
  * plugin managment
3
5
  * changed logging (added central logger, and configurable loglevel: MINFRA_LOGGING_LEVEL minfra.logging_level)
@@ -183,7 +183,7 @@ module Minfra
183
183
 
184
184
  subcommand = args.shift
185
185
 
186
- if ['exec', 'logs'].include?(subcommand)
186
+ if ['exec', 'logs','port-forward'].include?(subcommand)
187
187
  resource = nil
188
188
  implicit_resource = 'pod'
189
189
  else
@@ -196,8 +196,8 @@ module Minfra
196
196
  options[:cluster])
197
197
 
198
198
  cluster = stack.cluster_name
199
-
200
- if [resource, implicit_resource].include?('pod') && ['delete', 'describe', 'exec', 'logs'].include?(subcommand)
199
+ byebug
200
+ if [resource, implicit_resource].include?('pod') && ['delete', 'describe', 'exec', 'logs', 'port-forward'].include?(subcommand)
201
201
  cmd_get_pods = "kubectl --kubeconfig #{kube_config_path} --context #{cluster} --namespace #{options[:stack]} get pod -o jsonpath='{range .items[*]}{.metadata.name}{\"\\n\"}'"
202
202
 
203
203
  pods_list = run_cmd(cmd_get_pods).split("\n")
@@ -1,5 +1,5 @@
1
1
  module Minfra
2
2
  module Cli
3
- VERSION = '1.4.0'.freeze
3
+ VERSION = '1.4.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minfra-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Schrammel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-05 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor