Commit a1b45eb2 authored by Mahendra Bagul's avatar Mahendra Bagul

Renamed method names

parent 17911b62
...@@ -49,8 +49,8 @@ module Clusters ...@@ -49,8 +49,8 @@ module Clusters
create_or_update_knative_serving_role create_or_update_knative_serving_role
create_or_update_knative_serving_role_binding create_or_update_knative_serving_role_binding
create_or_update_crossplane_serving_role create_or_update_crossplane_database_role
create_or_update_crossplane_serving_role_binding create_or_update_crossplane_database_role_binding
end end
private private
...@@ -80,12 +80,12 @@ module Clusters ...@@ -80,12 +80,12 @@ module Clusters
kubeclient.update_role_binding(knative_serving_role_binding_resource) kubeclient.update_role_binding(knative_serving_role_binding_resource)
end end
def create_or_update_crossplane_serving_role def create_or_update_crossplane_database_role
kubeclient.update_role(crossplane_serving_role_resource) kubeclient.update_role(crossplane_database_role_resource)
end end
def create_or_update_crossplane_serving_role_binding def create_or_update_crossplane_database_role_binding
kubeclient.update_role_binding(crossplane_serving_role_binding_resource) kubeclient.update_role_binding(crossplane_database_role_binding_resource)
end end
def service_account_resource def service_account_resource
...@@ -145,7 +145,7 @@ module Clusters ...@@ -145,7 +145,7 @@ module Clusters
).generate ).generate
end end
def crossplane_serving_role_resource def crossplane_database_role_resource
Gitlab::Kubernetes::Role.new( Gitlab::Kubernetes::Role.new(
name: Clusters::Kubernetes::GITLAB_CROSSPLANE_DATABASE_ROLE_NAME, name: Clusters::Kubernetes::GITLAB_CROSSPLANE_DATABASE_ROLE_NAME,
namespace: service_account_namespace, namespace: service_account_namespace,
...@@ -157,7 +157,7 @@ module Clusters ...@@ -157,7 +157,7 @@ module Clusters
).generate ).generate
end end
def crossplane_serving_role_binding_resource def crossplane_database_role_binding_resource
Gitlab::Kubernetes::RoleBinding.new( Gitlab::Kubernetes::RoleBinding.new(
name: Clusters::Kubernetes::GITLAB_CROSSPLANE_DATABASE_ROLE_BINDING_NAME, name: Clusters::Kubernetes::GITLAB_CROSSPLANE_DATABASE_ROLE_BINDING_NAME,
role_name: Clusters::Kubernetes::GITLAB_CROSSPLANE_DATABASE_ROLE_NAME, role_name: Clusters::Kubernetes::GITLAB_CROSSPLANE_DATABASE_ROLE_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment