Add an alert for the users who has deprecated `gitops` keyword in their agent's configuration
Proposal
As we are removing the deprecated gitops keyword, we need to add an alert for the users who have this keyword in their agent's configuration.
Implementation plan
-
On the Kubernetes clusters page, request each local agent configuration file via the
/api/:version/projects/:id/repository/files/:path/rawpath. -
Parse the file using
parseutil fromyaml. Detect if the high-levelgitopskeyword is present. -
If the keyword is found, add a non-dismissible alert to the Kubernetes clusters page.
-
Alert text (to be reviewed by the Technical Writing team:
The pull-based deployment features of the GitLab agent for Kubernetes is deprecatedIf you use the agent for pull-based deployments, you should migrate to Flux.
-
Link to https://gdk.test:3443/help/user/clusters/agent/gitops/migrate_to_flux.md
-
Design:
