Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for auto adopt of existing Kubernetes resources #133

Open
1 task done
neltsov opened this issue Nov 12, 2024 · 0 comments
Open
1 task done

Option for auto adopt of existing Kubernetes resources #133

neltsov opened this issue Nov 12, 2024 · 0 comments

Comments

@neltsov
Copy link

neltsov commented Nov 12, 2024

Before proceeding

  • I didn't find a similar issue

Problem

I want to adopt some resources in Kuberntes cluster, manaully created before. To do that, I create a git repository, set up deployment into Kubernetes using werf.

During the first execution of werf plan (or werf deploy) I get error message:

Error: plan release: process resources: error validating adoptable resources: adoption validation failed: resource "<resource kind>/<resource name>" is not adoptable: annotation "meta.helm.sh/release-name" not found, must be set to "<release name>", annotation "meta.helm.sh/release-namespace" not found, must be set to "<release namespace>"

To deploy these resources first time, I need manually add these annotations and label.

Solution (if you have one)

Add an option to automatically create the label and annotations, if they don't exist.

Additional information

No response

@alexey-igrychev alexey-igrychev transferred this issue from werf/werf Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants