diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-04-10 12:09:48 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2019-04-16 02:10:11 +0300 |
commit | f8326af565f31b781b79dc1431af2a4737722775 (patch) | |
tree | e0d93824d6e320888818a914ed62e5dcafce891c /app/models | |
parent | 026c92d5fa82fac87386d5691c3d5b1e02f2eb5e (diff) |
Implement commands to uninstall cluster applications
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.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 |