Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,329
    • Merge requests 1,329
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #31759
Closed
Open
Issue created Sep 11, 2019 by Dylan Griffith@DylanGriffith2️⃣Maintainer

Allow clearing of cluster cache to avoid getting out of sync

Problem to solve

Sometimes a users GitLab <-> Cluster integration may get out of sync. For example if a user manually deletes a namespace. GitLab ends up being in a bad state where it won't recreate the namespace because it thinks it already exists.

Intended users

Further details

Requests for this feature in:

  • gitlab-foss#58432 (comment 215143210)
  • gitlab-foss#58432 (comment 189766784)
  • gitlab-foss#58432 (comment 179603894)
  • gitlab-foss#58432 (comment 147131208)
  • gitlab-foss#62032 (comment 214800544)
  • #28824 (comment 233041113)

Proposal

In the advance cluster settings, provide an option to clear all namespaces and service accounts:

Clear cluster cache

Delete GitLab's local cache of namespace and service accounts. This is necessary if your integration has become out of sync. The cache is repopulated during the next CI job that requires them.

[Clear cluster cache]

This deletes GitLab's local cache of namespaces and service accounts. Next time a job runs for an environment it will recreate the namespace and service account in K8s if it doesn't exist. If it does exist in K8s then GitLab will just reload them so it's safe either way.

Styling

The text should be our default text color and the button should be our primary blue, as it indicated management.

Permissions and Security

This should only be available to Maintainer for whatever cluster the namespace is related to.

Documentation

Testing

What does success look like, and how can we measure that?

Links / references

Edited Dec 13, 2019 by Daniel Gruesso
Assignee
Assign to
Time tracking