community icon indicating copy to clipboard operation
community copied to clipboard

HIP for custom resource ordering

Open NiklasWagner opened this issue 3 years ago • 5 comments

This HIP will cover the option to customize the install order of custom resources.

https://github.com/helm/helm/pull/9534

NiklasWagner avatar Jan 11 '22 07:01 NiklasWagner

Hi, I just found your HIP and I think it could help solve a problem I'm having during the creation of a helm release in which creation order matters. In my case all of the resources in the chart are custom resources though. Does this proposal handle ordering of CRs as well (for example creating a cert-manager Issuer CR before a Certificate that uses the issuer)?

tfussell avatar Jan 27 '22 15:01 tfussell

Hi @tfussell, the HIP currently doesn't cover sorting of CR against other CR. It only supports sorting against the currently hardcoded list in Helm: https://github.com/helm/helm/blob/1ec0aacb8865d5b1f7ef1cb884bbf9b12579ecef/pkg/releaseutil/kind_sorter.go#L31-L66

Skaronator avatar Jan 28 '22 10:01 Skaronator

Thanks @Skaronator. Would you be willing to consider it if I take on the work of adding it to your HIP and proof-of-concept PR?

tfussell avatar Feb 01 '22 22:02 tfussell

Sure, go ahead :)

Skaronator avatar Feb 01 '22 22:02 Skaronator