sct 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cluster/lib/cluster/runner.rb +17 -0
- data/sct/lib/sct/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dc9c664ca89d649033d4fcfdcad7e8d72d78b448d800caa8c8097ec1ea7ed47
|
4
|
+
data.tar.gz: f3cdba0dfbaacbf240e4f84f8530cb835308a19203999db78759b17d4eb18150
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56c7e96250c79f3fdb4de6fab3358e4e6eb443f813064d88e9353a766eccecc1ad1c7f2c2878716347676e3c24de1d09456763ccc2c857d13eb6cd4f058f7593
|
7
|
+
data.tar.gz: 27543415be2aac23a5032b2b96bb7504dd12b5cc3d41f73c489251416d1d3bc3ddd83c8af71f7163b96b0bfe1c22a1f8f06e8c9992a5a54d279a89a40d3c90b6
|
@@ -98,6 +98,7 @@ module Cluster
|
|
98
98
|
|
99
99
|
def post_start
|
100
100
|
wait_for_pods
|
101
|
+
copy_proactive_accounts_file
|
101
102
|
run_command "sudo sct hostfile"
|
102
103
|
run_command "minikube tunnel &", { out: "/dev/null", err: "/dev/null" } if SctCore::Helper::is_windows? # leave this running detached forever in the background
|
103
104
|
UI.success("\n✔️ You can visit your environment at 👉 https://spend-cloud.spend.cloud.local 👌")
|
@@ -292,6 +293,22 @@ module Cluster
|
|
292
293
|
return Terminal::Table.new title: "Pods (namespace: #{namespace})".green, headings: ['Name', 'Status', 'Replicas ready'], rows: rows
|
293
294
|
end
|
294
295
|
|
296
|
+
def copy_proactive_accounts_file
|
297
|
+
pod_id = pods().select {|pod| pod[:name].start_with?("proactive-config")}.first[:name]
|
298
|
+
|
299
|
+
begin
|
300
|
+
UI.important("Checking ProActive accounts file...")
|
301
|
+
run_command "kubectl exec #{pod_id} -- test -e /data/proactive_accounts.ini", [:out, :err] => File::NULL
|
302
|
+
rescue => e
|
303
|
+
UI.important("Copying ProActive accounts file to deployments...")
|
304
|
+
src_path = "#{Dir.home()}/development/spend-cloud/k8s/conf/proactive_accounts.ini"
|
305
|
+
command = "kubectl cp #{src_path} #{pod_id}:/data/proactive_accounts.ini"
|
306
|
+
run_command command
|
307
|
+
end
|
308
|
+
|
309
|
+
UI.success("ProActive accounts file is available")
|
310
|
+
end
|
311
|
+
|
295
312
|
def run_command command, options = {}
|
296
313
|
if ! system command, options
|
297
314
|
raise command.red
|
data/sct/lib/sct/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reshad Farid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored
|
@@ -241,10 +241,10 @@ metadata:
|
|
241
241
|
post_install_message:
|
242
242
|
rdoc_options: []
|
243
243
|
require_paths:
|
244
|
+
- shell/lib
|
244
245
|
- cluster/lib
|
245
246
|
- sct/lib
|
246
247
|
- sct_core/lib
|
247
|
-
- shell/lib
|
248
248
|
required_ruby_version: !ruby/object:Gem::Requirement
|
249
249
|
requirements:
|
250
250
|
- - ">="
|
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
256
|
- !ruby/object:Gem::Version
|
257
257
|
version: '0'
|
258
258
|
requirements: []
|
259
|
-
rubygems_version: 3.
|
259
|
+
rubygems_version: 3.1.2
|
260
260
|
signing_key:
|
261
261
|
specification_version: 4
|
262
262
|
summary: Spend Cloud Tool.
|