k8sflow 0.11.4 → 0.11.5

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
  SHA1:
3
- metadata.gz: 4ae0c6526bcf0c4e99c791a897b080480269901b
4
- data.tar.gz: c0c2e392497f54a50782040457bf4aa36ac9f8a6
3
+ metadata.gz: 0a812507520dc90b78ee1a86f3f2d52ac128d5ab
4
+ data.tar.gz: 3f1e41fde43efd9e5393f1fe136880f9d59cc99b
5
5
  SHA512:
6
- metadata.gz: f9f7699f408fc849b76d5b1ef6e7d4ec34f6aa12d9fd14e90d33b2180ab048df989d9bedcdd007924c49929fadbd96ef6fa5dd0a9b911dbea6e2c8c6fef9a1f9
7
- data.tar.gz: cb5de5351bb0f7e11018d3ea78bc124870e381957ba76435101b270eead5e17b084873bdda0f82c1d089a55371420d0b21a705c888d3738a9132ae32ebdb4299
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: "tcp://localhost:4243"
104
- option :tag, '-t', '--tag TAG', "Image tag", default: 'lateb'
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
@@ -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: "tcp://localhost:4243"
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": { "#{ctn_port}/tcp": [{ "HostPort": host_port.to_s}] }
87
+ "PortBindings" => { "#{ctn_port}/tcp" => [{ "HostPort" => host_port.to_s}] }
88
88
  }
89
89
  end
90
90
  if options[:port_all] == true
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  module K8sflow
3
- VERSION = '0.11.4'
3
+ VERSION = '0.11.5'
4
4
  VERSION_NAMES = {1 => 'France II',
5
5
  2 => 'R.C. Rickmers',
6
6
  3 => 'Thomas W. Lawson',
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
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-12 00:00:00.000000000 Z
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