Commit 7be10a7c authored by Amit Rathi's avatar Amit Rathi

Remove logging changes

parent 6dda43d6
...@@ -8,26 +8,13 @@ module Gitlab ...@@ -8,26 +8,13 @@ module Gitlab
end end
def install(command) def install(command)
begin namespace.ensure_exists!
namespace.ensure_exists!
create_service_account(command)
create_service_account(command) create_cluster_role_binding(command)
create_cluster_role_binding(command) create_config_map(command)
Gitlab::AppLogger.info("---CREATING CONFIG MAP-----")
Gitlab::AppLogger.info(command) kubeclient.create_pod(command.pod_resource)
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
end end
def update(command) def update(command)
...@@ -67,7 +54,6 @@ module Gitlab ...@@ -67,7 +54,6 @@ module Gitlab
def create_config_map(command) def create_config_map(command)
command.config_map_resource.tap do |config_map_resource| command.config_map_resource.tap do |config_map_resource|
Gitlab::AppLogger.info(config_map_resource)
kubeclient.create_config_map(config_map_resource) kubeclient.create_config_map(config_map_resource)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment