Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-04-10 12:09:48 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2019-04-16 02:10:11 +0300
commitf8326af565f31b781b79dc1431af2a4737722775 (patch)
treee0d93824d6e320888818a914ed62e5dcafce891c /app/models/clusters/concerns
parent026c92d5fa82fac87386d5691c3d5b1e02f2eb5e (diff)
Implement commands to uninstall cluster applications
This is the backend part which just allows uninstalling Prometheus for now.
Diffstat (limited to 'app/models/clusters/concerns')
-rw-r--r--app/models/clusters/concerns/application_data.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/clusters/concerns/application_data.rb b/app/models/clusters/concerns/application_data.rb
index 52498f123ff..a48ee340fac 100644
--- a/app/models/clusters/concerns/application_data.rb
+++ b/app/models/clusters/concerns/application_data.rb
@@ -6,6 +6,14 @@ module Clusters
extend ActiveSupport::Concern
included do
+ def uninstall_command
+ Gitlab::Kubernetes::Helm::DeleteCommand.new(
+ name: name,
+ rbac: cluster.platform_kubernetes_rbac?,
+ files: files
+ )
+ end
+
def repository
nil
end