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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
7be10a7c
Commit
7be10a7c
authored
Nov 13, 2018
by
Amit Rathi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove logging changes
parent
6dda43d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
21 deletions
+7
-21
lib/gitlab/kubernetes/helm/api.rb
lib/gitlab/kubernetes/helm/api.rb
+7
-21
No files found.
lib/gitlab/kubernetes/helm/api.rb
View file @
7be10a7c
...
@@ -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
...
...
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