gitlab-org--gitlab-foss/app/services/clusters/applications/base_helm_service.rb

30 lines
472 B
Ruby
Raw Normal View History

2017-11-02 13:55:02 -04:00
module Clusters
module Applications
class BaseHelmService
attr_accessor :app
def initialize(app)
@app = app
end
protected
def cluster
app.cluster
end
def kubeclient
cluster.kubeclient
end
def helm_api
@helm_api ||= Gitlab::Kubernetes::Helm::Api.new(kubeclient)
2017-11-02 13:55:02 -04:00
end
2017-11-07 09:26:14 -05:00
def install_command
@install_command ||= app.install_command
end
2017-11-02 13:55:02 -04:00
end
end
end