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

Helm template Capabilities.ApiVersions.Has behavior different than helm install #609

Open
gibbleyg opened this issue Mar 1, 2023 · 0 comments

Comments

@gibbleyg
Copy link
Contributor

gibbleyg commented Mar 1, 2023

Similar issue as helm/helm#11809

We use helm install here. Unfortunately, using --validate fails due to the following errors

DEPLOYER Error: rendered manifests contain a resource that already exists. Unable to continue with install: Application "apptest-ongxcpxv" in namespace "apptest-ongxcpxv" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "apptest-ongxcpxv"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "apptest-ongxcpxv"

It's probably not feasible to create the application resource later. (We create it pre-deployer) code

We can pass api-versions to Helm via --api-versions argument. https://helm.sh/docs/helm/helm_template/

Unfortunately, it's not super easy to get these fields since kubectl api-resources only allows for wide output and not json and this is difficult to parse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant