Giter Site home page Giter Site logo

Comments (5)

inteon avatar inteon commented on July 4, 2024 1

--reuse-values makes Helm re-use the values that it is currently using for your Helm chart release. The newly introduced property crds is not part of your existing values.yaml (it was added to the defaults in values.yaml in v1.15.0), causing Helm to fail when we try to read the enabled field on this property (interface {}.enabled) in the new templates.

By using --reset-then-reuse-values, you use the new defaults that are provided in the new version of the Helm chart. Afterwards, the existing values are applied on top of these defaults. This resolves the issue because the crds is now a property that exists in the defaults.

In my opinion, this is an issue caused by how Helm handles changing the default values.yaml values across versions. It is impossible for us to introduce new complex properties without breaking upgrading with the --reuse-values flag.
Not sure if there are any other issues with the --reset-then-reuse-values flag, but I would advise to use that flag instead (like explained on the website https://cert-manager.io/docs/installation/upgrade/#crds-managed-using-helm)

from cert-manager.

fmunteanu avatar fmunteanu commented on July 4, 2024

If I perform a clean helm chart install, everything works as expected, only the upgrade is broken.

from cert-manager.

declum avatar declum commented on July 4, 2024

Can you change installCrds to crds.enabled? https://cert-manager.io/docs/installation/helm/

from cert-manager.

inteon avatar inteon commented on July 4, 2024

@fmunteanu I think you have to use the --reset-then-reuse-values flag, as described here: https://cert-manager.io/docs/installation/upgrade/#crds-managed-using-helm

--reuse-values should not be used when upgrading versions.

from cert-manager.

fmunteanu avatar fmunteanu commented on July 4, 2024

@declum thank you for pointing this out, I see installCRDs was deprecated. Still, this should not affect the upgrade.

You are correct @inteon, I'm using Ansible to deploy the cert-manager Helm chart, with reset_values: false and reuse_values: true. I had no idea about this, I've been using these two settings for all other charts, without any issues.

Can you please explain why this breaks the upgrade? Thank you.

from cert-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.