Skip to content

Feature Request: Remove management annotations from empty implicit namespaces #2025

@tiffanny29631

Description

@tiffanny29631

Checklist

  • I did not find a related open enhancement request.
  • I understand that enhancement requests filed in the GitHub repository are by default low priority.
  • If this request is time-sensitive, I have submitted a corresponding issue with GCP support.

Describe the feature

Description: If a user removes the last managed resource from an implicit namespace in their Git repository, Config Sync leaves the management labels and annotations on the Namespace object in the cluster. This creates a stale state where the Namespace appears to be managed by Config Sync, even though no resources within it are currently being synced.

Feature request: We request that the multi-repo reconciler be updated to detect when an implicit namespace no longer contains any managed resources. When this occurs, it should automatically strip the management annotations and labels from the Namespace, accurately reflecting that it is no longer under active management for that repository.

Alternatives considered:

  • Deleting the Namespace entirely (disruptive if the Namespace contains other unmanaged resources).

Importance

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions