Re: [HIP] helm lock
Paul Czarkowski
Just out of curiosity does anyone know how helm would behave if we used ValidatingAdmissionController webhook to deny the helm release to be modified ? I bet you could rough it out with OPA/Gatekeeper to say “do not allow modifications to secrets with the helm labels and a lock annotation. I would imagine Helm would error out before upgrading the chart, which would give us close to the locking functionality without even touching helm yet.
If we could confirm that behavior, then we could even look at getting Helm to understand a webhook denial to give a better looking error, and then maybe write a helm plugin to perform the lock/unlock (add/remove the annotation), plus maybe write a targeting helm release locker webhook, or publish the rego required for OPA.
From: cncf-helm@... <cncf-helm@...>
On Behalf Of Matt Fisher via lists.cncf.io
Sent: Tuesday, March 2, 2021 10:53 AM To: Justin Garrison <justinleegarrison@...> Cc: cncf-helm@... Subject: Re: [cncf-helm] [HIP] helm lock
> I wasn't aware you could do that. Is it common practice for someone to replace a chart for an in place deployment?
A common use case is to migrate from a public chart repository (like one published on ArtifactHub) to an internal chart repository. The workflow is very similar to forking a git repository. A chart
can be changed after it is deployed. You can test this out yourself by installing one chart and call
The situation surrounding replacing one chart with an entirely different chart is a side-effect of this behaviour; templates can be removed and replaced at-will during an upgrade. It's important to keep in mind that Helm simply renders the templates, compares the rendered manifests with the previous release, and creates/updates/deletes resources as requested by the user.
Matthew Fisher Caffeinated Software Engineer Microsoft Canada From: Justin Garrison <justinleegarrison@...>
Thanks for the link to the PR. That seems a bit different than what I had in mind.
Those are great questions to include in the proposal. Here's some basic answers and a question for clarification.
--
On Thu, Feb 25, 2021 at 2:23 PM Matt Fisher <Matt.Fisher@...> wrote:
|
|