lib/kubec/kubernetes/container.rb in kubec-0.3.3 vs lib/kubec/kubernetes/container.rb in kubec-0.3.4
- old
+ new
@@ -45,10 +45,10 @@
containerPort: container_port,
hostPort: host_port,
hostIP: ip,
name: name,
protocol: protocol
- }
+ }.reject { |_, v| v.nil? }
self[:ports].push port
end
def command(*args)
args = args.flatten