Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm Install History #1285

Closed
CpuID opened this issue Jul 27, 2023 · 2 comments · Fixed by #1309
Closed

Helm Install History #1285

CpuID opened this issue Jul 27, 2023 · 2 comments · Fixed by #1309
Assignees
Labels

Comments

@CpuID
Copy link
Contributor

CpuID commented Jul 27, 2023

Describe the rationale for the suggested feature.

Being able to troubleshoot errors like this from support bundles:

 Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress

Describe the feature

We should add a collector for Helm Release History, a la:

helm ls -a --namespace <namespace>
helm history <release> --namespace <namespace>

https://ibm.github.io/helm101/Lab3/#scenario-2-revision-management-using-helm

With Helm, every time an install, upgrade, or rollback happens, the revision number is incremented by 1. The first revision number is always 1. Helm persists release metadata in Secrets (default) or ConfigMaps, stored in the Kubernetes cluster. Every time your release changes, it appends that to the existing data. This provides Helm with the capability to rollback to a previous release.

Describe alternatives you've considered

Having a customer run the commands manually, less than ideal. Would be nice to have the data in support bundles.

Additional context

@CpuID CpuID added the type::feature New feature or request label Jul 27, 2023
@drohnow drohnow self-assigned this Aug 3, 2023
@drohnow
Copy link
Contributor

drohnow commented Aug 3, 2023

@CpuID What are your thoughts on collecting the following information in this json format?

[{
	"releaseInfo": {
		"chart": "big_app-0.1.1",
		"releaseName": "prod01",
		"appVersion": "0.16.0",
		"namespace": "default",
		"versionInfo": [{
				"revision": "1",
				"date": "2023-07-02 05:05:43.201063 -0700 PDT",
				"status": "superseded",
				"isPending": false,
				"description": "Install complete"
			},
			{
				"revision": "2",
				"date": "2023-08-02 07:18:37.201041 -0700 PDT",
				"status": "deployed",
				"isPending": false,
				"description": "Upgrade complete"
			}
		]
	}
}]

@CpuID
Copy link
Contributor Author

CpuID commented Aug 3, 2023

that seems reasonable 👍

@xavpaice xavpaice linked a pull request Aug 9, 2023 that will close this issue
6 tasks
@CpuID CpuID assigned DexterYan and unassigned drohnow Aug 25, 2023
@xavpaice xavpaice linked a pull request Aug 31, 2023 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
4 participants