diff options
Diffstat (limited to 'lib/api/group_clusters.rb')
-rw-r--r-- | lib/api/group_clusters.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/group_clusters.rb b/lib/api/group_clusters.rb index abfe10b7fa1..0108f6feae3 100644 --- a/lib/api/group_clusters.rb +++ b/lib/api/group_clusters.rb @@ -59,7 +59,7 @@ module API requires :token, type: String, desc: 'Token to authenticate against Kubernetes' optional :ca_cert, type: String, desc: 'TLS certificate (needed if API is using a self-signed TLS certificate)' optional :namespace, type: String, desc: 'Unique namespace related to Group' - optional :authorization_type, type: String, values: Clusters::Platforms::Kubernetes.authorization_types.keys, default: 'rbac', desc: 'Cluster authorization type, defaults to RBAC' + optional :authorization_type, type: String, values: ::Clusters::Platforms::Kubernetes.authorization_types.keys, default: 'rbac', desc: 'Cluster authorization type, defaults to RBAC' end use :create_params_ee end @@ -96,7 +96,7 @@ module API put ':id/clusters/:cluster_id' do authorize! :update_cluster, cluster - update_service = Clusters::UpdateService.new(current_user, update_cluster_params) + update_service = ::Clusters::UpdateService.new(current_user, update_cluster_params) if update_service.execute(cluster) present cluster, with: Entities::ClusterGroup |