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

Issue with CRDs when having trust-manager as chart dependency #281

Open
heruan opened this issue Jan 23, 2024 · 1 comment
Open

Issue with CRDs when having trust-manager as chart dependency #281

heruan opened this issue Jan 23, 2024 · 1 comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@heruan
Copy link

heruan commented Jan 23, 2024

I'm building a Chart that has trust-manager as a dependency, since it has a template for Bundle:

dependencies:
  - name: cert-manager
    version: 1.13.3
    repository: https://charts.jetstack.io
    condition: cert-manager.enabled
  - name: trust-manager
    version: 0.8.0
    repository: https://charts.jetstack.io
    condition: trust-manager.enabled

but installation fails with:

Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "control-center-ca-bundle" namespace: "" from "": no matches for kind "Bundle" in version "trust.cert-manager.io/v1alpha1"
ensure CRDs are installed first

as if the CRDs for trust-manager are not installed automatically. So if I put the CRDs file in the crds directory of my Chart (as I'm doing with cert-manager) I get this other error:

Error: INSTALLATION FAILED: Unable to continue with install: CustomResourceDefinition "bundles.trust.cert-manager.io" in namespace "" 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"

as if the CRDs are being installed this time.

I suppose CRDs of dependencies are installed after the templates of the Chart, but that means that I can't use Bundle in my templates and it kinda defeats the purpose of a dependency.

With cert-manager this does not happen since CRDs installation is disabled by default and I have the CRDs file in the crds directory.

Any suggestions on how to handle this?

@heruan heruan changed the title Issue whit CRDs when having trust-manager as chart dependency Issue with CRDs when having trust-manager as chart dependency Jan 23, 2024
@cert-manager-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
/lifecycle stale

@cert-manager-prow cert-manager-prow bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

2 participants