Skip to content

Expose gitlab managed apps logs path in cluster entities

Background

Currently Logs explorer allows users only to monitor logs collected from environments based namespaces within their clusters.
With #208790 (closed) we want to extend logs explorer usability, by adding ability to view logs collected from gitlab-managed-apps namespace, which host different GitLab Managed Applications

What does this MR do?

It extends list of clusters returned from Clusters controller with path to gitlab managed apps in log explorer. It is meant t be used at log explorer section in the extended Environment dropdown

drop-down

While generating new path user authorization to view logs is confirmed, and path is only supplied to user with proper permissions. In other cases key gitlab_managed_apps_logs_path will be empty.

In case of group and instance clusters, due to lack of current project context any project within given scope (group / instance) to which user has access is selected, as it does not change the way the logs will be fetched.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

- [ ] Changelog entry Without frontend changes this new path will not carry any noticeable effect to users, therefore no changelog was added

Edited by Mikołaj Wawrzyniak

Merge request reports

Loading