Skip to content

Getting ownership error when using exists annotation for resources created by kapp-controller App CRs #457

Closed
@praveenrewar

Description

@praveenrewar

What steps did you take:
kapp deploy -a myapp -f one.yaml -f two.yaml

one.yaml has an App CR which internally creates a CRD (C).
two.yaml has a mock CRD (C) with the exists annotation and a CR of kind (C)

What happened:
When I tried deploying myapp again I got ownership error

kapp deploy -a myapp -f one.yaml -f two.yaml
kapp: Error: Ownership errors:
- Resource 'customresourcedefinition/customresource.mydomain.io (apiextensions.k8s.io/v1) cluster' is already associated with a different app

What did you expect:
The app should have been successfully deployed the second time as well.

Anything else you would like to add:
Slack thread


Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Metadata

Metadata

Assignees

Labels

bugThis issue describes a defect or unexpected behaviorcarvel acceptedThis issue should be considered for future work and that the triage process has been completed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions