Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3c62476f
Commit
3c62476f
authored
Nov 30, 2020
by
Hordur Freyr Yngvason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move uninstall_command to Clusters::Concerns::ApplicationCore
Closes
https://gitlab.com/gitlab-org/gitlab/-/issues/276162
parent
54e5a8d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
app/models/clusters/concerns/application_core.rb
app/models/clusters/concerns/application_core.rb
+8
-0
app/models/clusters/concerns/application_data.rb
app/models/clusters/concerns/application_data.rb
+0
-8
No files found.
app/models/clusters/concerns/application_core.rb
View file @
3c62476f
...
...
@@ -62,6 +62,14 @@ module Clusters
end
end
def
uninstall_command
helm_command_module
::
DeleteCommand
.
new
(
name:
name
,
rbac:
cluster
.
platform_kubernetes_rbac?
,
files:
files
)
end
def
prepare_uninstall
# Override if your application needs any action before
# being uninstalled by Helm
...
...
app/models/clusters/concerns/application_data.rb
View file @
3c62476f
...
...
@@ -3,14 +3,6 @@
module
Clusters
module
Concerns
module
ApplicationData
def
uninstall_command
helm_command_module
::
DeleteCommand
.
new
(
name:
name
,
rbac:
cluster
.
platform_kubernetes_rbac?
,
files:
files
)
end
def
repository
nil
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment