summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-04-10 21:09:48 +1200
committerDylan Griffith <dyl.griffith@gmail.com>2019-04-16 09:10:11 +1000
commitf8326af565f31b781b79dc1431af2a4737722775 (patch)
treee0d93824d6e320888818a914ed62e5dcafce891c /app/models
parent026c92d5fa82fac87386d5691c3d5b1e02f2eb5e (diff)
downloadgitlab-ce-f8326af565f31b781b79dc1431af2a4737722775.tar.gz
Implement commands to uninstall cluster applicationshelm_uninstall_command
This is the backend part which just allows uninstalling Prometheus for now.
Diffstat (limited to 'app/models')
-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