diff options
author | Amit Rathi <amit@hypertrack.io> | 2018-11-13 14:27:49 +0300 |
---|---|---|
committer | Amit Rathi <amit@hypertrack.io> | 2018-11-13 14:27:49 +0300 |
commit | 206f6747ec9ff97a4b6c77d7a2e0bc6bdd52732d (patch) | |
tree | 2f67d97e06a7e50421dde6081bdfba280780940b /lib/gitlab/kubernetes | |
parent | c2407dab3e3ba1471ccebc008179f829d21fe3ce (diff) |
Updated logging
Diffstat (limited to 'lib/gitlab/kubernetes')
-rw-r--r-- | lib/gitlab/kubernetes/helm/api.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/kubernetes/helm/pod.rb | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/gitlab/kubernetes/helm/api.rb b/lib/gitlab/kubernetes/helm/api.rb index 63f3d863c61..9e441f760e9 100644 --- a/lib/gitlab/kubernetes/helm/api.rb +++ b/lib/gitlab/kubernetes/helm/api.rb @@ -9,6 +9,8 @@ module Gitlab def install(command) begin + Gitlab::AppLogger.info("---INSTALLING---------") + Gitlab::AppLogger.info(command) namespace.ensure_exists! create_service_account(command) diff --git a/lib/gitlab/kubernetes/helm/pod.rb b/lib/gitlab/kubernetes/helm/pod.rb index e9c621d96f0..008e1232b73 100644 --- a/lib/gitlab/kubernetes/helm/pod.rb +++ b/lib/gitlab/kubernetes/helm/pod.rb @@ -14,7 +14,9 @@ module Gitlab spec[:volumes] = volumes_specification spec[:containers][0][:volumeMounts] = volume_mounts_specification spec[:serviceAccountName] = service_account_name if service_account_name - + Gitlab::AppLogger.info('--- Generating Installation POD ----') + Gitlab::AppLogger.info(metadata) + Gitlab::AppLogger.info(spec) ::Kubeclient::Resource.new(metadata: metadata, spec: spec) end @@ -48,10 +50,14 @@ module Gitlab end def generate_pod_env(command) + sc = command.generate_script + Gitlab::AppLogger.info('--- generate_pod_env and command is---*******----') + Gitlab::AppLogger.info(sc) + Gitlab::AppLogger.info('--------------------------------------------------------') { HELM_VERSION: Gitlab::Kubernetes::Helm::HELM_VERSION, TILLER_NAMESPACE: namespace_name, - COMMAND_SCRIPT: command.generate_script + COMMAND_SCRIPT: sc }.map { |key, value| { name: key, value: value } } end |