Sha256: c8fe56ae3564bf1cb7e5d4e4257771ad121c0ff1ab4f3ec712234863f5b579e9

Contents?: true

Size: 550 Bytes

Versions: 16

Compression:

Stored size: 550 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: { "#{label_namespace}/name": name }.merge(additional_labels),
            name:
          }.merge(formatted_annotations).merge(formatted_namespace)
        }.merge(pod_spec)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
metatron-0.6.0 lib/metatron/templates/pod.rb
metatron-0.5.0 lib/metatron/templates/pod.rb
metatron-0.4.2 lib/metatron/templates/pod.rb
metatron-0.4.1 lib/metatron/templates/pod.rb
metatron-0.4.0 lib/metatron/templates/pod.rb
metatron-0.3.4 lib/metatron/templates/pod.rb
metatron-0.3.3 lib/metatron/templates/pod.rb
metatron-0.3.2 lib/metatron/templates/pod.rb
metatron-0.3.1 lib/metatron/templates/pod.rb
metatron-0.3.0 lib/metatron/templates/pod.rb
metatron-0.2.8 lib/metatron/templates/pod.rb
metatron-0.2.7 lib/metatron/templates/pod.rb
metatron-0.2.6 lib/metatron/templates/pod.rb
metatron-0.2.5 lib/metatron/templates/pod.rb
metatron-0.2.4 lib/metatron/templates/pod.rb
metatron-0.2.3 lib/metatron/templates/pod.rb