diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-04-10 21:09:48 +1200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2019-04-16 09:10:11 +1000 |
commit | f8326af565f31b781b79dc1431af2a4737722775 (patch) | |
tree | e0d93824d6e320888818a914ed62e5dcafce891c /app/models/clusters/concerns | |
parent | 026c92d5fa82fac87386d5691c3d5b1e02f2eb5e (diff) | |
download | gitlab-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/clusters/concerns')
-rw-r--r-- | app/models/clusters/concerns/application_data.rb | 8 |
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 |