Sha256: 7c86de109b71686917ec8b63c710fd37ffb4cc9612b14c2abaf172a4e1f8d4c2

Contents?: true

Size: 697 Bytes

Versions: 12

Compression:

Stored size: 697 Bytes

Contents

# frozen_string_literal: true

module Metatron
  module Templates
    # The ServiceAccount Kubernetes resource
    class ServiceAccount < Template
      include Concerns::Annotated
      include Concerns::Namespaced

      attr_accessor :automount_service_account_token

      alias automountServiceAccountToken automount_service_account_token

      def render
        {
          apiVersion:,
          kind:,
          automountServiceAccountToken:,
          metadata: {
            name:,
            labels: { "#{label_namespace}/name": name }.merge(additional_labels)
          }.merge(formatted_annotations).merge(formatted_namespace).compact
        }.compact
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
metatron-0.6.0 lib/metatron/templates/service_account.rb
metatron-0.5.0 lib/metatron/templates/service_account.rb
metatron-0.4.2 lib/metatron/templates/service_account.rb
metatron-0.4.1 lib/metatron/templates/service_account.rb
metatron-0.4.0 lib/metatron/templates/service_account.rb
metatron-0.3.4 lib/metatron/templates/service_account.rb
metatron-0.3.3 lib/metatron/templates/service_account.rb
metatron-0.3.2 lib/metatron/templates/service_account.rb
metatron-0.3.1 lib/metatron/templates/service_account.rb
metatron-0.3.0 lib/metatron/templates/service_account.rb
metatron-0.2.8 lib/metatron/templates/service_account.rb
metatron-0.2.7 lib/metatron/templates/service_account.rb