summaryrefslogtreecommitdiff
path: root/lib/gitlab/kubernetes
diff options
context:
space:
mode:
authorAmit Rathi <amit@hypertrack.io>2018-11-13 17:42:34 +0530
committerAmit Rathi <amit@hypertrack.io>2018-11-13 17:42:34 +0530
commit0e4ad53c92d574a92b41c325eab0cec79d58f796 (patch)
tree04a7e9c0c89c3c8f2b9f333e5bcf85eb2c6681e4 /lib/gitlab/kubernetes
parent7be10a7c2196bd6a9a5a89776f6c408dfd08da10 (diff)
downloadgitlab-ce-0e4ad53c92d574a92b41c325eab0cec79d58f796.tar.gz
Remove logging from pod.rb
Diffstat (limited to 'lib/gitlab/kubernetes')
-rw-r--r--lib/gitlab/kubernetes/helm/pod.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/gitlab/kubernetes/helm/pod.rb b/lib/gitlab/kubernetes/helm/pod.rb
index 008e1232b73..e9c621d96f0 100644
--- a/lib/gitlab/kubernetes/helm/pod.rb
+++ b/lib/gitlab/kubernetes/helm/pod.rb
@@ -14,9 +14,7 @@ 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
@@ -50,14 +48,10 @@ 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: sc
+ COMMAND_SCRIPT: command.generate_script
}.map { |key, value| { name: key, value: value } }
end