Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maksim-paskal/helm-update-objects
https://github.com/maksim-paskal/helm-update-objects
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/maksim-paskal/helm-update-objects
- Owner: maksim-paskal
- Created: 2023-04-04T11:21:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T12:24:20.000Z (9 months ago)
- Last Synced: 2024-05-19T00:37:17.677Z (8 months ago)
- Language: Go
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fix helm upgrading
## Problem
When you try to upgrade a old helm chart, you can get the following error:
```
current release manifest contains removed kubernetes api(s) for this kubernetes version and it is therefore unable to build the kubernetes objects for performing the diff. error from kubernetes: unable to recognize "": no matches for kind "Ingress" in version "networking.k8s.io/v1beta1"
```## Posible solutions
1. Remove old release and install new one (if possible)
2. Update objects in the installed chart release with this command```bash
go run github.com/maksim-paskal/helm-update-objects/cmd@latest \
--kubeconfig ~/.kube/config \
--namespace my-release-namespace \
--release-name my-release \
--dry-run=false
```## Rules to update helm metadata
rules are defined in [pkg/config/config.go](./pkg/config/config.go)