Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0e4ad53c
Commit
0e4ad53c
authored
Nov 13, 2018
by
Amit Rathi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove logging from pod.rb
parent
7be10a7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
lib/gitlab/kubernetes/helm/pod.rb
lib/gitlab/kubernetes/helm/pod.rb
+2
-8
No files found.
lib/gitlab/kubernetes/helm/pod.rb
View file @
0e4ad53c
...
@@ -14,9 +14,7 @@ module Gitlab
...
@@ -14,9 +14,7 @@ module Gitlab
spec
[
:volumes
]
=
volumes_specification
spec
[
:volumes
]
=
volumes_specification
spec
[
:containers
][
0
][
:volumeMounts
]
=
volume_mounts_specification
spec
[
:containers
][
0
][
:volumeMounts
]
=
volume_mounts_specification
spec
[
:serviceAccountName
]
=
service_account_name
if
service_account_name
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
)
::
Kubeclient
::
Resource
.
new
(
metadata:
metadata
,
spec:
spec
)
end
end
...
@@ -50,14 +48,10 @@ module Gitlab
...
@@ -50,14 +48,10 @@ module Gitlab
end
end
def
generate_pod_env
(
command
)
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
,
HELM_VERSION
:
Gitlab
::
Kubernetes
::
Helm
::
HELM_VERSION
,
TILLER_NAMESPACE
:
namespace_name
,
TILLER_NAMESPACE
:
namespace_name
,
COMMAND_SCRIPT
:
sc
COMMAND_SCRIPT
:
command
.
generate_script
}.
map
{
|
key
,
value
|
{
name:
key
,
value:
value
}
}
}.
map
{
|
key
,
value
|
{
name:
key
,
value:
value
}
}
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment