diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-31 12:09:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-31 12:09:32 +0300 |
commit | 5025412fc4ab16cc7049a38d43fdc2e4095a1f87 (patch) | |
tree | ecec75618d069e02ba0ebcf36db6630150a9d073 /app/services/clusters | |
parent | 853c0c530b624a2f94ce85acbbdffc70510bdba3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/clusters')
-rw-r--r-- | app/services/clusters/applications/patch_service.rb | 32 | ||||
-rw-r--r-- | app/services/clusters/applications/update_service.rb | 17 |
2 files changed, 0 insertions, 49 deletions
diff --git a/app/services/clusters/applications/patch_service.rb b/app/services/clusters/applications/patch_service.rb deleted file mode 100644 index fbea18bae6b..00000000000 --- a/app/services/clusters/applications/patch_service.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -module Clusters - module Applications - class PatchService < BaseHelmService - def execute - return unless app.scheduled? - - app.make_updating! - - patch - end - - private - - def patch - log_event(:begin_patch) - helm_api.update(update_command) - - log_event(:schedule_wait_for_patch) - 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 update.')) - end - end - end -end diff --git a/app/services/clusters/applications/update_service.rb b/app/services/clusters/applications/update_service.rb deleted file mode 100644 index 7a36401f156..00000000000 --- a/app/services/clusters/applications/update_service.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -module Clusters - module Applications - class UpdateService < Clusters::Applications::BaseService - private - - def worker_class(application) - ClusterPatchAppWorker - end - - def builder - cluster.public_send(application_class.association_name) # rubocop:disable GitlabSecurity/PublicSend - end - end - end -end |