Skip to content

Resource ownership model does not guarantee exclusivity #7699

Closed

Description

@jlegrone

In typical usage, Helm's safeguards to prevent creation of an existing resource will prevent shared ownership of a resource between multiple releases. However, if the release metadata of two or more releases come to contain references to the same resource, there is no mechanism to prevent these releases from acting on that resource. This will become a more likely occurrence if #2730 (or other tools like it) are implemented.

Also related to #2388.

Activity

  1. added
    bug
    on Feb 28, 2020
  2. jdolitsky commented on Feb 28, 2020

    @jdolitsky
    Contributor

    @jlegrone how would we approach this? Do we need to iterate over all releases and owned references?

  3. jlegrone commented on Feb 28, 2020

    @jlegrone
    MemberAuthor

    how would we approach this? Do we need to iterate over all releases and owned references?

    In #7649 we add release metadata to each resource via an annotation. This will allow newer Helm clients to error out before attempting to act on a resource owned by a different release (as indicated by these annotations), and wouldn't require any additional API calls.

  4. github-actions commented on Sep 21, 2020

    @github-actions

    This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

  5. seaneagan commented on Oct 13, 2025

    @seaneagan

    i think this issue is only solved for create/update of resources. without #12683 being fixed, both old and new helm releases are still owning the resource from a deletion perspective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions