mkit 0.10.0 → 0.10.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/db/migrate/007_migrate_schema.rb +5 -1
- data/lib/mkit/app/model/backend.rb +2 -2
- data/lib/mkit/app/model/frontend.rb +2 -2
- data/lib/mkit/version.rb +1 -1
- data/mkit.gemspec +2 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88d1667ab2483a2e03f6f27cafda091a011acd989f1eb343c61946ee82336d9a
|
4
|
+
data.tar.gz: 633eb60d1369080032c7ed99695377608197a2720a533a573a8b61c63aa77a4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53508532b4c5f69541e7d8d2f46252437b3a56c4a7071df960ec4f4f2c06aa8011e174f9ef2fdf24f269d86a5b1aa846832eeb3352a3384c0c37ff1e85fcd439
|
7
|
+
data.tar.gz: 505926bb17a3b0583386bca83511d2be5398a26f350d14b88ad5dab07553a2448b0371be1e4f8e93d585162ec112c6702d48a2227038ffce424810713290cfef
|
@@ -27,7 +27,7 @@ class MigrateSchema < ActiveRecord::Migration[5.1]
|
|
27
27
|
default_backend: "backend-#{port.external_port}"
|
28
28
|
}
|
29
29
|
|
30
|
-
if port.ssl.start_with?('true')
|
30
|
+
if !port.ssl.nil? && port.ssl.start_with?('true')
|
31
31
|
frontend[:bind][:ssl] = true
|
32
32
|
frontend[:bind][:cert] = port.crt
|
33
33
|
end
|
@@ -41,6 +41,10 @@ class MigrateSchema < ActiveRecord::Migration[5.1]
|
|
41
41
|
balance: port.load_bal
|
42
42
|
}
|
43
43
|
|
44
|
+
if port.internal_port.nil? || port.internal_port.empty?
|
45
|
+
backend[:bind].delete(:port)
|
46
|
+
end
|
47
|
+
|
44
48
|
if port.mode == 'http'
|
45
49
|
a= [
|
46
50
|
'option httpclose',
|
@@ -3,8 +3,8 @@ require 'mkit/exceptions'
|
|
3
3
|
|
4
4
|
class Frontend < ActiveRecord::Base
|
5
5
|
belongs_to :ingress
|
6
|
-
serialize :options, JSON
|
7
|
-
serialize :bind_options, JSON
|
6
|
+
serialize :options, coder: JSON
|
7
|
+
serialize :bind_options, coder: JSON
|
8
8
|
has_one :backend
|
9
9
|
|
10
10
|
def self.create(yaml)
|
data/lib/mkit/version.rb
CHANGED
data/mkit.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = 'Micro k8s on Ruby - a simple tool to deploy containers to mimic a (very) minimalistic k8 cluster with a nice REST API'
|
14
14
|
# s.require_paths = ["."]
|
15
15
|
s.author = 'Vasco Santos'
|
16
|
-
s.email = ['valexsantos
|
16
|
+
s.email = ['valexsantos - gmail - com']
|
17
17
|
s.version = MKIt::VERSION
|
18
18
|
s.platform = Gem::Platform::RUBY
|
19
19
|
s.files = Dir.chdir(File.expand_path(__dir__)) do
|
@@ -38,4 +38,5 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.add_runtime_dependency 'thin', '~> 1.8', '>= 1.8.1'
|
39
39
|
s.add_runtime_dependency 'text-table', '~> 1.2', '>= 1.2.4'
|
40
40
|
s.add_runtime_dependency 'faye-websocket', '~> 0.11', '>= 0.11.3'
|
41
|
+
s.add_development_dependency 'rubocop', '~> 1.0'
|
41
42
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasco Santos
|
@@ -350,10 +350,24 @@ dependencies:
|
|
350
350
|
- - ">="
|
351
351
|
- !ruby/object:Gem::Version
|
352
352
|
version: 0.11.3
|
353
|
+
- !ruby/object:Gem::Dependency
|
354
|
+
name: rubocop
|
355
|
+
requirement: !ruby/object:Gem::Requirement
|
356
|
+
requirements:
|
357
|
+
- - "~>"
|
358
|
+
- !ruby/object:Gem::Version
|
359
|
+
version: '1.0'
|
360
|
+
type: :development
|
361
|
+
prerelease: false
|
362
|
+
version_requirements: !ruby/object:Gem::Requirement
|
363
|
+
requirements:
|
364
|
+
- - "~>"
|
365
|
+
- !ruby/object:Gem::Version
|
366
|
+
version: '1.0'
|
353
367
|
description: Micro k8s on Ruby - a simple tool to deploy containers to mimic a (very)
|
354
368
|
minimalistic k8 cluster with a nice REST API
|
355
369
|
email:
|
356
|
-
- valexsantos
|
370
|
+
- valexsantos - gmail - com
|
357
371
|
executables:
|
358
372
|
- mkitd
|
359
373
|
- mkit
|