Allow setting an owner for the agents
Release notes
Problem to solve
In Notify the agent owners that their agent is out... (#474219), we added notifications to be sent out when outdated agents are used with GitLab. By default, the notifications are sent out to the project owners of the agent configuration project.
This issue aims to improve the setup by allowing specifying the agent owner in the agent configuration file. The owner can be a list of users or groups. Users should be members of the agent configuration project, and groups should share the top-level group of the agent configuration project.
Alternatively, we can take the approach of treating every agent as a service, and showing/notifying the owner as part of Service management and registry (&11048)
Proposal
Intended users
Feature Usage Metrics
- the
counts.kubernetes_agents
metric should include details about custom owners being set, the number of the owners, and whether they are users or groups
Does this feature require an audit event?
-
cluster_agent_owner_changed
when the owner changes