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