diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-02 00:07:06 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-02 00:07:06 +0000 |
| commit | b26eec8cbcf32085079eee0e196456eccefc993f (patch) | |
| tree | 822f69aeec23b0b3512583b2221000a8035241f7 /lib/api/internal/kubernetes.rb | |
| parent | 61666f277a484725307ae2b34697b13a300b2129 (diff) | |
| download | gitlab-ce-b26eec8cbcf32085079eee0e196456eccefc993f.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/internal/kubernetes.rb')
| -rw-r--r-- | lib/api/internal/kubernetes.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/api/internal/kubernetes.rb b/lib/api/internal/kubernetes.rb index d06d1e9862a..c42b6fd8951 100644 --- a/lib/api/internal/kubernetes.rb +++ b/lib/api/internal/kubernetes.rb @@ -6,7 +6,6 @@ module API class Kubernetes < ::API::Base include Gitlab::Utils::StrongMemoize - feature_category :kubernetes_management before do check_feature_enabled authenticate_gitlab_kas_request! @@ -86,7 +85,7 @@ module API detail 'Retrieves agent info for the given token' end route_setting :authentication, cluster_agent_token_allowed: true - get '/agent_info', urgency: :low do + get '/agent_info', feature_category: :kubernetes_management, urgency: :low do project = agent.project status 200 @@ -104,7 +103,7 @@ module API detail 'Retrieves project info (if authorized)' end route_setting :authentication, cluster_agent_token_allowed: true - get '/project_info', urgency: :low do + get '/project_info', feature_category: :kubernetes_management, urgency: :low do project = find_project(params[:id]) not_found! unless agent_has_access_to_project?(project) @@ -127,7 +126,7 @@ module API requires :agent_id, type: Integer, desc: 'ID of the configured Agent' requires :agent_config, type: JSON, desc: 'Configuration for the Agent' end - post '/' do + post '/', feature_category: :kubernetes_management do agent = ::Clusters::Agent.find(params[:agent_id]) ::Clusters::Agents::RefreshAuthorizationService.new(agent, config: params[:agent_config]).execute @@ -150,7 +149,7 @@ module API optional :agent_users_using_ci_tunnel, type: Set[Integer], desc: 'A set of user ids that have interacted a CI Tunnel to' end end - post '/' do + post '/', feature_category: :kubernetes_management do increment_count_events increment_unique_events |
