debian-mirror-gitlab/app/models/clusters/applications/helm.rb

23 lines
575 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
module Clusters
module Applications
class Helm < ActiveRecord::Base
self.table_name = 'clusters_applications_helm'
include ::Clusters::Concerns::ApplicationCore
include ::Clusters::Concerns::ApplicationStatus
default_value_for :version, Gitlab::Kubernetes::Helm::HELM_VERSION
def set_initial_status
return unless not_installable?
self.status = 'installable' if cluster&.platform_kubernetes_active?
end
def install_command
2018-03-27 19:54:05 +05:30
Gitlab::Kubernetes::Helm::InitCommand.new(name)
2018-03-17 18:26:18 +05:30
end
end
end
end