Sha256: 1a8ade176fa3078fa198fd32aafa22800ab0dbc5b1199b527eab06e3740be31a

Contents?: true

Size: 610 Bytes

Versions: 13

Compression:

Stored size: 610 Bytes

Contents

require 'picsolve_docker_builder/base'

module PicsolveDockerBuilder
  module Helpers
    module Kubernetes
      # A generic kuberntes resource
      class Resource
        include PicsolveDockerBuilder::Base
        def initialize(image, kubernetes)
          @image = image
          @kubernetes = kubernetes
        end

        def client
          @kubernetes.client
        end

        def template_labels
          {
            'name' => @image.name,
            'app_name' => @image.composer.app_name,
            'stage' => @image.composer.stage
          }
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
picsolve_docker_builder-0.5.5 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.5.4 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.5.3 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.5.2 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.5.1 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.5.0 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.4.0 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.3.2 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.3.1 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.3.0 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.2.0 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.1.1 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb
picsolve_docker_builder-0.1.0 lib/picsolve_docker_builder/helpers/kubernetes/resource.rb