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
a1b45eb2
Commit
a1b45eb2
authored
Nov 12, 2019
by
Mahendra Bagul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed method names
parent
17911b62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
app/services/clusters/kubernetes/create_or_update_service_account_service.rb
...rs/kubernetes/create_or_update_service_account_service.rb
+8
-8
No files found.
app/services/clusters/kubernetes/create_or_update_service_account_service.rb
View file @
a1b45eb2
...
...
@@ -49,8 +49,8 @@ module Clusters
create_or_update_knative_serving_role
create_or_update_knative_serving_role_binding
create_or_update_crossplane_
serving
_role
create_or_update_crossplane_
serving
_role_binding
create_or_update_crossplane_
database
_role
create_or_update_crossplane_
database
_role_binding
end
private
...
...
@@ -80,12 +80,12 @@ module Clusters
kubeclient
.
update_role_binding
(
knative_serving_role_binding_resource
)
end
def
create_or_update_crossplane_
serving
_role
kubeclient
.
update_role
(
crossplane_
serving
_role_resource
)
def
create_or_update_crossplane_
database
_role
kubeclient
.
update_role
(
crossplane_
database
_role_resource
)
end
def
create_or_update_crossplane_
serving
_role_binding
kubeclient
.
update_role_binding
(
crossplane_
serving
_role_binding_resource
)
def
create_or_update_crossplane_
database
_role_binding
kubeclient
.
update_role_binding
(
crossplane_
database
_role_binding_resource
)
end
def
service_account_resource
...
...
@@ -145,7 +145,7 @@ module Clusters
).
generate
end
def
crossplane_
serving
_role_resource
def
crossplane_
database
_role_resource
Gitlab
::
Kubernetes
::
Role
.
new
(
name:
Clusters
::
Kubernetes
::
GITLAB_CROSSPLANE_DATABASE_ROLE_NAME
,
namespace:
service_account_namespace
,
...
...
@@ -157,7 +157,7 @@ module Clusters
).
generate
end
def
crossplane_
serving
_role_binding_resource
def
crossplane_
database
_role_binding_resource
Gitlab
::
Kubernetes
::
RoleBinding
.
new
(
name:
Clusters
::
Kubernetes
::
GITLAB_CROSSPLANE_DATABASE_ROLE_BINDING_NAME
,
role_name:
Clusters
::
Kubernetes
::
GITLAB_CROSSPLANE_DATABASE_ROLE_NAME
,
...
...
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