Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

bakito/helm-patch

Repository files navigation

GoDoc Go Report Card GitHub Release

Helm Patch Plugin

Overview

This plugin helps fixing helm 3 charts in some szenarios, where default helm 3 might have difficulties.

Patch API changes

During upgrades of a k2s cluster the version of resources might change. Since the resources are stored in the chart version on the namespace. The versions might become invalid after such an upgrade, since the k2 API might not resolve the resoucde with the old version any more.

This option allows to migrat api version of a certain installend chart version to allow seamless upgrade to the new API.

helm patch api <chart-name> --from v1 --to v2 --kind ConfigMap --revision 1 --dry-run

Adopt existing resources into a new chart

This command allows to adopt / import existing resources into a new chart. One of the key benefits is, that existing deployments can be seamlessly re-used within a new chart.

helm patch adopt <release-name> <chart> --kind resource-kind --name resource-name

Remove a resources from a new chart

This command allows to remove a resource from a chart.

helm patch rm <chart> --kind resource-kind --name resource-name

License

FOSSA Status