k8sflow 0.11.4 → 0.11.5
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/lib/k8sflow/command/image.rb +2 -2
- data/lib/k8sflow/command/k8s/topic.rb +15 -0
- data/lib/k8sflow/command/run.rb +2 -2
- data/lib/k8sflow/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a812507520dc90b78ee1a86f3f2d52ac128d5ab
|
4
|
+
data.tar.gz: 3f1e41fde43efd9e5393f1fe136880f9d59cc99b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4a1d663e0fb372d393721db83d72b31c3f1fca4ce62f754a0315d74d927c5696e9b5bd24030e08280ca0a1c5523ba9ab192e422782ae925f13369448a2961d1
|
7
|
+
data.tar.gz: d7147dc6da47c19ca92b34c4d81253aca1af42616a5416b8f0482ed5b64c8610abe9424c5ab2a86c464f6c314d2c0c3dad81c0323e3ac2703db64a0146603a6c
|
@@ -100,8 +100,8 @@ module K8sflow
|
|
100
100
|
|
101
101
|
option :registry, '-r', '--registry DOCKER_REPO', 'Docker registry to pull/fetch images'
|
102
102
|
option :path, '-p', '--path DOCKERFILE PATH', 'dockerfiles source directory to'
|
103
|
-
option :docker_api, "-H", "--host", "docker api endpoint", default: "
|
104
|
-
option :tag, '-t', '--tag TAG', "Image tag", default: '
|
103
|
+
option :docker_api, "-H", "--host", "docker api endpoint", default: "unix://"
|
104
|
+
option :tag, '-t', '--tag TAG', "Image tag", default: 'latest'
|
105
105
|
|
106
106
|
#dockerfile templates
|
107
107
|
option :files, "-f", "--files FILE1,FILE2", Array, "List files to copy in dockerfile directory, i.e 'files/*',/etc/conf.cfg'"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module K8sflow
|
2
|
+
module K8s
|
3
|
+
class K8sTopic < Clitopic::Topic::Base
|
4
|
+
register name: 'pg',
|
5
|
+
description: 'Manage postgres actions'
|
6
|
+
|
7
|
+
option :database, '-d', '--database DATABASE', '[REQUIRED] Database uri or alias', required: true
|
8
|
+
option :ssl, "--ssl", "enable sslmode"
|
9
|
+
|
10
|
+
option :databases, "--databases alias1=postgresql_URI,alias2=postgresql_URI2", Array, "Create database aliases"
|
11
|
+
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/k8sflow/command/run.rb
CHANGED
@@ -29,7 +29,7 @@ $ k8sflow run -t 2.10 -p 3000:3000 'run server -p 3000'
|
|
29
29
|
option :heroku, "--heroku APP", "get all envs from heroku"
|
30
30
|
option :heroku_db, "--heroku-db", "get DB envs only from heroku"
|
31
31
|
option :tty, "--[no-]tty", "Use tty"
|
32
|
-
option :docker_api, "-h", "--host", "docker api endpoint", default: "
|
32
|
+
option :docker_api, "-h", "--host", "docker api endpoint", default: "unix://"
|
33
33
|
option :aliases, "--aliases a=x,b=y", "commands aliases, usefull in the default file"
|
34
34
|
|
35
35
|
class << self
|
@@ -84,7 +84,7 @@ $ k8sflow run -t 2.10 -p 3000:3000 'run server -p 3000'
|
|
84
84
|
if options[:port]
|
85
85
|
ctn_port, host_port = options[:port].split(":")
|
86
86
|
container_info["HostConfig"] = {
|
87
|
-
"PortBindings"
|
87
|
+
"PortBindings" => { "#{ctn_port}/tcp" => [{ "HostPort" => host_port.to_s}] }
|
88
88
|
}
|
89
89
|
end
|
90
90
|
if options[:port_all] == true
|
data/lib/k8sflow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: k8sflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antoine Legrand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cli-topic
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/k8sflow/cli.rb
|
83
83
|
- lib/k8sflow/command.rb
|
84
84
|
- lib/k8sflow/command/image.rb
|
85
|
+
- lib/k8sflow/command/k8s/topic.rb
|
85
86
|
- lib/k8sflow/command/maintenance.rb
|
86
87
|
- lib/k8sflow/command/pg/backup.rb
|
87
88
|
- lib/k8sflow/command/pg/copy.rb
|