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
02f3dd26
Commit
02f3dd26
authored
Oct 15, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in app/services/clusters/create_service.rb
parent
700148be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
app/services/clusters/create_service.rb
app/services/clusters/create_service.rb
+0
-17
No files found.
app/services/clusters/create_service.rb
View file @
02f3dd26
...
...
@@ -2,7 +2,6 @@
module
Clusters
class
CreateService
<<<<<<<
HEAD
prepend
EE
::
Clusters
::
CreateService
attr_reader
:current_user
,
:params
...
...
@@ -19,22 +18,6 @@ module Clusters
provider
[
:access_token
]
=
access_token
end
=======
attr_reader
:current_user
,
:params
def
initialize
(
user
=
nil
,
params
=
{})
@current_user
,
@params
=
user
,
params
.
dup
end
def
execute
(
project
:,
access_token:
nil
)
raise
ArgumentError
.
new
(
_
(
'Instance does not support multiple Kubernetes clusters'
))
unless
can_create_cluster?
(
project
)
cluster_params
=
params
.
merge
(
user:
current_user
,
projects:
[
project
])
cluster_params
[
:provider_gcp_attributes
].
try
do
|
provider
|
provider
[
:access_token
]
=
access_token
end
>>>>>>>
upstream
/
master
create_cluster
(
cluster_params
).
tap
do
|
cluster
|
ClusterProvisionWorker
.
perform_async
(
cluster
.
id
)
if
cluster
.
persisted?
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