8000 GitHub - flavono123/helm-dyff: A helm3 plugin, dyff between the current release and new one with a new chart version and values.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A helm3 plugin, dyff between the current release and new one with a new chart version and values.

License

Notifications You must be signed in to change notification settings

flavono123/helm-dyff

Repository files navigation

helm-dyff

GitHub License GitHub go.mod Go version Go Report Card

A helm3 plugin, dyff between the current release and new one with a new chart version and values.

helm-dyff

Concept

To dry-run the upgrade of a release with a new chart version, usually do this with dyff, my favorite diff tool and too long and several times of helm calls:

❯ dyff bw ib \
  # from this, the current release's mainfests
  <(heml get manifest myrelease)  \
  # to this, the new one i want to upgrade
  <(helm template myrelease myrepo/mychart --version x.y.z -f <(helm get values myrelease))

Sometimes, the new values are required:

❯ dyff bw ib \
  <(heml get manifest myrelease)  \
  <(helm template myrelease myrepo/mychart --version x.y.z -f <(helm get values myrelease) -f new-values.yaml ...)

What if the current context is not in the same namespace as the release:

❯ dyff bw ib \
  <(heml get manifest myrelease -n mynamespace)  \
  <(helm template myrelease myrepo/mychart --version x.y.z -f <(helm get values myrelease -n mynamespace) -f new-values.yaml ... -n mynamespace)

Use cases and examples

New chart version

dyff with the new chart version:

❯ helm dyff upgrade myrelease myrepo/mychart -v x.y.z

New values

dyff with the new values ammended(would overwrite to the current release's one):

❯ helm dyff upgrade myrelease myrepo/mychart -f new-values.yaml

or just with the new values, disabling the default option:

❯ helm dyff upgrade myrelease myrepo/mychart -f new-values.yaml --ammend false

Installation

❯ helm plugin install https://github.com/flavono123/helm-dyff

TODO

  • ci
    • support helm plugin update
    • unit tests
    • bump a tag, release at once

About

A helm3 plugin, dyff between the current release and new one with a new chart version and values.

Topics

Resources

License

Stars

Watchers

Forks

0