2017-11-02 06:14:10 -04:00
|
|
|
module Clusters
|
2017-11-02 10:10:46 -04:00
|
|
|
module Applications
|
|
|
|
class Helm < ActiveRecord::Base
|
|
|
|
self.table_name = 'clusters_applications_helm'
|
|
|
|
|
2017-11-02 06:14:10 -04:00
|
|
|
NAME = 'helm'.freeze
|
|
|
|
|
|
|
|
include ::Clusters::Concerns::AppStatus
|
|
|
|
|
2017-11-02 10:31:25 -04:00
|
|
|
belongs_to :cluster, class_name: 'Clusters::Cluster', foreign_key: :cluster_id
|
2017-11-02 06:14:10 -04:00
|
|
|
|
2017-11-02 11:57:18 -04:00
|
|
|
default_value_for :version, Gitlab::Kubernetes::Helm::HELM_VERSION
|
2017-11-02 06:14:10 -04:00
|
|
|
|
|
|
|
def name
|
|
|
|
NAME
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|