Class: UffizziCore::Api::Cli::V1::Accounts::ClustersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- UffizziCore::Api::Cli::V1::Accounts::ClustersController
- Includes:
- DependencyInjectionConcern
- Defined in:
- app/controllers/uffizzi_core/api/cli/v1/accounts/clusters_controller.rb
Instance Method Summary collapse
Methods included from DependencyInjectionConcern
#ci_module, #ci_session, #controller_settings_service, #deployment_memory_module, #domain_module, #find_build_parser_module, #find_ingress_parser_module, #find_volume_parser_module, #notification_module, #password_protection_module, #template_memory_module, #user_access_module
Instance Method Details
#index ⇒ Object
7 8 9 10 11 12 |
# File 'app/controllers/uffizzi_core/api/cli/v1/accounts/clusters_controller.rb', line 7 def index return respond_with(clusters_by_account.includes(:project)) if valid_request_from_ci_workflow? clusters = clusters_by_user.or(clusters_by_admin_projects) respond_with(clusters.includes(:project)) end |