Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Rathi <amit@hypertrack.io>2018-11-13 15:10:38 +0300
committerAmit Rathi <amit@hypertrack.io>2018-11-13 15:10:38 +0300
commit7be10a7c2196bd6a9a5a89776f6c408dfd08da10 (patch)
treefec07aa044800a81ea2e3e1dcdcb1adc1ca0867e /lib/gitlab/kubernetes
parent6dda43d67ed3c85611f41a344c766bc6a8b95ccf (diff)
Remove logging changes
Diffstat (limited to 'lib/gitlab/kubernetes')
-rw-r--r--lib/gitlab/kubernetes/helm/api.rb28
1 files changed, 7 insertions, 21 deletions
diff --git a/lib/gitlab/kubernetes/helm/api.rb b/lib/gitlab/kubernetes/helm/api.rb
index 63f3d863c61..e21bc531444 100644
--- a/lib/gitlab/kubernetes/helm/api.rb
+++ b/lib/gitlab/kubernetes/helm/api.rb
@@ -8,26 +8,13 @@ module Gitlab
end
def install(command)
- begin
- namespace.ensure_exists!
-
- create_service_account(command)
- create_cluster_role_binding(command)
- Gitlab::AppLogger.info("---CREATING CONFIG MAP-----")
- Gitlab::AppLogger.info(command)
- create_config_map(command)
- Gitlab::AppLogger.info("---CREATING K8s POD-----")
-
- kubeclient.create_pod(command.pod_resource)
- rescue StandardError => e
- Gitlab::AppLogger.info('install_api_error------------------------------------------------')
- Gitlab::AppLogger.error(e)
- Gitlab::AppLogger.error(e.backtrace.join("\n"))
- rescue Exception => e
- Gitlab::AppLogger.info('install_api_exception--------------------------------------------------')
- Gitlab::AppLogger.error(e)
- Gitlab::AppLogger.error(e.backtrace.join("\n"))
- end
+ namespace.ensure_exists!
+
+ create_service_account(command)
+ create_cluster_role_binding(command)
+ create_config_map(command)
+
+ kubeclient.create_pod(command.pod_resource)
end
def update(command)
@@ -67,7 +54,6 @@ module Gitlab
def create_config_map(command)
command.config_map_resource.tap do |config_map_resource|
- Gitlab::AppLogger.info(config_map_resource)
kubeclient.create_config_map(config_map_resource)
end
end