Read about our upcoming Code of Conduct on this issue

base_helm_service.rb 315 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
module Clusters
  class BaseHelmService
    attr_accessor :app

    def initialize(app)
      @app = app
    end

    protected

11
12
13
14
15
16
17
    def cluster
      app.cluster
    end

    def kubeclient
      cluster.kubeclient
    end
18

19
20
    def helm_api
      @helm ||= Gitlab::Clusters::Helm.new(kubeclient)
21
22
23
    end
  end
end