diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-05 12:09:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-05 12:09:49 +0300 |
commit | 1e02d1c756e1b5e79453fcc805c9737bb6520fca (patch) | |
tree | d0a3b167272dfe32cbaa4c552082a4a3f831bfed /app/services/clusters | |
parent | 130b909c4fab338c54e3292ed0c4f548e26e46b9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/clusters')
-rw-r--r-- | app/services/clusters/applications/install_service.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/app/services/clusters/applications/install_service.rb b/app/services/clusters/applications/install_service.rb deleted file mode 100644 index dffb4ce65ab..00000000000 --- a/app/services/clusters/applications/install_service.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -module Clusters - module Applications - class InstallService < BaseHelmService - def execute - return unless app.scheduled? - - app.make_installing! - - install - end - - private - - def install - log_event(:begin_install) - helm_api.install(install_command) - - log_event(:schedule_wait_for_installation) - ClusterWaitForAppInstallationWorker.perform_in( - ClusterWaitForAppInstallationWorker::INTERVAL, app.name, app.id) - rescue Kubeclient::HttpError => e - log_error(e) - app.make_errored!(_('Kubernetes error: %{error_code}') % { error_code: e.error_code }) - rescue StandardError => e - log_error(e) - app.make_errored!(_('Failed to install.')) - end - end - end -end |