pfab 0.49.0 → 0.50.0

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
  SHA256:
3
- metadata.gz: 2f1a84c3c63d1db81cc363286650c690eab5759533679a74d0dc1849368204f6
4
- data.tar.gz: fec0e7d30e078a426b4596ae0ea7dface693f5b4f994c9cd26c9e63eb9f9b086
3
+ metadata.gz: 843d834bac5fcac5a8761c3571769bdfddfbe675b437c053c73f51ac5de2be5e
4
+ data.tar.gz: 71d5523cf8f3fbdd3ac10775f16b75c25b36d427bce36d86f078a36c7d39b9b6
5
5
  SHA512:
6
- metadata.gz: 644d664ff9952cc3f485b19b0c188f6b608547e9b42af3a2975392a0c80a83df6f6c754d637a023a725b0e2eec56d96334a0c0ee76d6bff409ca8feeef72deb2
7
- data.tar.gz: 6c002bd38ff2975392daa54845aa2333a18e5fff14e0d1c51001415aae9724cca5eb7f00630c0e81e7b717c24f1273edc43cdd961a18359a6a7ca069ef3f9582
6
+ metadata.gz: 7154a5cf912a6f890f4b4442942655a06a9d37dbcb1c53d0d0db55c1f752048ce5d47663e4b00ae79f0bcd4fe7dac4c744a086c91974337a672f2f89c49c1518
7
+ data.tar.gz: b31ca987ad5f375d4f9d24ce253c42455a6d8ec8da2592885496d8f3066baef1f220c5dabdad7175f6b55ec0d3ae43be6ce5d359059d1ba5affa004cdd209fbd
@@ -125,6 +125,28 @@ module Pfab
125
125
  } }
126
126
  end
127
127
  end
128
+
129
+
130
+ def container_ports
131
+ ports = []
132
+ if app_vars["port"]
133
+ ports.append ({
134
+ name: "main",
135
+ containerPort: app_vars["port"]
136
+ })
137
+ end
138
+ %w[additionalPorts containerPorts].each do |key|
139
+ if get(key)
140
+ get(key).each do |name, number|
141
+ ports.append(
142
+ {name: name, containerPort: number}
143
+ )
144
+ end
145
+ end
146
+ end
147
+
148
+ return ports
149
+ end
128
150
  end
129
151
  end
130
152
  end
@@ -58,6 +58,7 @@ module Pfab
58
58
  env: env_vars,
59
59
  envFrom: env_from,
60
60
  resources: resources,
61
+ ports: container_ports()
61
62
  }
62
63
  ]
63
64
  }.compact,
@@ -251,17 +251,7 @@ module Pfab
251
251
  readOnly: true
252
252
  )
253
253
  end
254
- ports = [ {
255
- name: "main",
256
- containerPort: app_vars["port"]
257
- }]
258
- if get("additionalPorts")
259
- get("additionalPorts").each do |name, number|
260
- ports.append(
261
- {name: name, containerPort: number}
262
- )
263
- end
264
- end
254
+ ports = container_ports()
265
255
 
266
256
  {
267
257
  kind: "Deployment",
data/lib/pfab/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Pfab
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 49
4
+ MINOR = 50
5
5
  PATCH = 0
6
6
  BUILD = nil
7
7
 
data/pfab.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: pfab 0.49.0 ruby lib
5
+ # stub: pfab 0.50.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "pfab".freeze
9
- s.version = "0.49.0"
9
+ s.version = "0.50.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Jeff Dwyer".freeze]
14
- s.date = "2024-03-01"
14
+ s.date = "2024-05-06"
15
15
  s.description = "k8s helper".freeze
16
16
  s.email = "jdwyer@prefab.cloud".freeze
17
17
  s.executables = ["pfab".freeze]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pfab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dwyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-01 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander