Sha256: dd65b3fe566ef01543a58e81724625cec7bf809e39a11375108d10b12b4f270d
Contents?: true
Size: 526 Bytes
Versions: 4
Compression:
Stored size: 526 Bytes
Contents
# frozen_string_literal: true module Metatron module Templates # Template for basic Pod k8s resource class Pod < Template include Concerns::Annotated include Concerns::PodProducer include Concerns::Namespaced def render { apiVersion:, kind:, metadata: { labels: base_labels.merge(additional_labels), name: }.merge(formatted_annotations).merge(formatted_namespace) }.merge(pod_spec) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
metatron-0.8.2 | lib/metatron/templates/pod.rb |
metatron-0.8.0 | lib/metatron/templates/pod.rb |
metatron-0.7.0 | lib/metatron/templates/pod.rb |
metatron-0.6.1 | lib/metatron/templates/pod.rb |