kube_cluster 0.9.2 → 0.11.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5e65a20c48045695bd8ad8cbf3d6155ce91bc70114e690a857e177fc5cf80ea
4
- data.tar.gz: b85d541cbdbd2cd2c94dedd73aba981ef4a7d8459a0665c9a026a37163a3a50d
3
+ metadata.gz: c056fcbc2db3063ab4ed5707b77711966b34d4798c7c868df69e566732ef65e6
4
+ data.tar.gz: 2ab36772a929e50bbefd8c8324aa354eb3c58555f2f7b481b6ecb6f035c7874d
5
5
  SHA512:
6
- metadata.gz: 171115e1a12579e22ca8b488ccf2d30f3c02fb8f068d43b7b97e01a11dd4698b2010bab9f526c099446885e09353e12afe84c30b278305a00ca160679fb67a0a
7
- data.tar.gz: e96944f59f2a9d186f87868725f2d0f5ee30a79809e9779c2703d9e303589d573e723773d449e343e1aef23e1baf854cb9e9a2178d3d2d24237bfe01ceee4d64
6
+ metadata.gz: 5ff9ef7d0c1ed4a82e47ac131c1bc585d3df5510396bfa8f7082720b51964e5fb86cbdcbf9bfab8afc55ba4d33eb9117d399e88bbc118c94661524540b06f166
7
+ data.tar.gz: e0e49a7923213beaf9e05bd3faf3ad5d8ef39410ab4ce794c473d73416ae41dc145441798585a70ba1a31ff2bfba18db7db3e6c5533ac34289bb9c18246bf000
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kube_cluster (0.9.2)
4
+ kube_cluster (0.11.0)
5
5
  activesupport (~> 8.0)
6
6
  kube_kubectl (~> 2.0)
7
7
  kube_schema (~> 1.5)
@@ -13,6 +13,8 @@ module Kube
13
13
  port:,
14
14
  namespace: 'default',
15
15
  env: {},
16
+ command: nil,
17
+ init_containers: [],
16
18
  security_context: nil,
17
19
  pod_security_context: nil,
18
20
  volume_mounts: {},
@@ -50,10 +52,12 @@ module Kube
50
52
  ports: [{ name: 'http', containerPort: port, protocol: 'TCP' }],
51
53
  env: processed_env
52
54
  }
55
+ container[:command] = command if command
53
56
  container[:securityContext] = security_context if security_context
54
57
  container[:volumeMounts] = processed_volumes[:volume_mounts] unless processed_volumes[:volume_mounts].empty?
55
58
 
56
59
  spec.template.spec.containers = [container]
60
+ spec.template.spec.initContainers = init_containers unless init_containers.empty?
57
61
  spec.template.spec.volumes = processed_volumes[:volumes] unless processed_volumes[:volumes].empty?
58
62
  end
59
63
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kube
4
4
  module Cluster
5
- VERSION = "0.9.2"
5
+ VERSION = "0.11.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kube_cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan K