chopshop-logreader 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/chopshop/logreader/executor.rb +2 -1
- data/lib/chopshop/logreader/parser.rb +6 -1
- data/lib/chopshop/logreader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4643ced8d7e2c59fbf952f664830b153535e759faec0808a0929fa468e6a527
|
4
|
+
data.tar.gz: b3297dd87e662429b8a7fb8eb8319572d58bddc08dedb8bfc182732b1816bb64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6914d2d72ed31d866a8db404d3593e5a8440f4982df84b88a8d012828b2b08d74987337b1f31a97153facff046a6bb3cee4d58af9822bc145556628ca983c127
|
7
|
+
data.tar.gz: 29f0107c67bc1360c89c5f60ea56919b99daa5bc71b1269a694a11b37d74cb2d5be28bef2304251d6776ab8aee6387e150c0b16fd74c19ff1a6491d8258cade6
|
data/Gemfile.lock
CHANGED
@@ -26,10 +26,11 @@ module Chopshop
|
|
26
26
|
options = @parser.parse
|
27
27
|
profile = options.profile || ENV["AWS_PROFILE"] || ENV["PROFILE"]
|
28
28
|
tenant = options.tenant || ENV["DEFAULT_TENANT"]
|
29
|
+
region = options.region || ENV["AWS_REGION"] || "us-east-1"
|
29
30
|
|
30
31
|
container = nil
|
31
32
|
service = ARGV[0]
|
32
|
-
`rally-kubectl -e #{profile} -t #{tenant}`
|
33
|
+
`rally-kubectl -a #{region} -e #{profile} -t #{tenant}`
|
33
34
|
puts "looking for valid container"
|
34
35
|
while !container
|
35
36
|
containers = `kubectl get pods --namespace #{options.namespace} | grep #{service}`
|
@@ -11,7 +11,8 @@ module Chopshop
|
|
11
11
|
status: "Running", # look for a currently running container
|
12
12
|
namespace: "connect",
|
13
13
|
tenant: nil,
|
14
|
-
profile: nil
|
14
|
+
profile: nil,
|
15
|
+
region: nil
|
15
16
|
)
|
16
17
|
|
17
18
|
|
@@ -38,6 +39,10 @@ module Chopshop
|
|
38
39
|
options[:profile] = profile
|
39
40
|
end
|
40
41
|
|
42
|
+
opts.on("-r [REGION]", "--region [REGION]", "sets the cloud region to look for a tenant within. default: us-east-1. You may also provide this value via the ENV VAR 'AWS_REGION'", String) do |region|
|
43
|
+
options[:region] = region
|
44
|
+
end
|
45
|
+
|
41
46
|
opts.on("-t [TENANT]", "--tenant [TENANT]", "sets the kubernetes tenant to look for containers in. default: nil. You must provide this value or set the ENV VAR DEFAULT_TENANT'", String) do |tenant|
|
42
47
|
options[:tenant] = tenant
|
43
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chopshop-logreader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Perdue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|