nikhilsbhat / helm-drift

Helm plugin that identifies the configuration that has drifted from the Helm chart
https://artifacthub.io/packages/helm-plugin/helm-drift/drift
MIT License
62 stars 8 forks source link

error: When trying to compute drift in a umbrella chart #29

Open ishnmu opened 2 days ago

ishnmu commented 2 days ago

We deploy our services using helm umbrella chart (one chart has many within it), while attempting to calculate drift in config, the plugin is panicking.

error:

{"level":"debug","msg":"rendering manifest to disc, hold on for a moment....","time":"2024-09-27T15:59:25+05:30"}
{"level":"debug","msg":"failed to get 'metadata' from the manifest","time":"2024-09-27T15:59:25+05:30"}
ERRO[0003] getting manifest information from template errored with 'failed to get kind from the manifest, 'kind' is not type string' 
{"level":"fatal","msg":"failed to get kind from the manifest, 'kind' is not type string","time":"2024-09-27T15:59:25+05:30"}
Error: plugin "drift" exited with error
nikhilsbhat commented 2 days ago

@ishnmu, It seems I know the issue. I already have a PR open for another Helm plugin I developed ref. I'll work on abstracting the solution so that both plugins benefit from it. Were there any specific charts you tested with? That would help me troubleshoot further.

ishnmu commented 2 days ago

Nikhil, thanks for the response.

I cant share the details of the umbrella chart I used as its internal. But let me see if I can reproduce it with the dummy umbrella chart mimicking the actual structure.

On Fri, 27 Sep 2024 at 6:07 PM, Nikhil Bhat @.***> wrote:

@ishnmu https://github.com/ishnmu, It seems I know the issue. I already have a PR open for another Helm plugin I developed ref https://github.com/nikhilsbhat/helm-images/pull/42. I'll work on abstracting the solution so that both plugins benefit from it. Were there any specific charts you tested with? That would help me troubleshoot further.

— Reply to this email directly, view it on GitHub https://github.com/nikhilsbhat/helm-drift/issues/29#issuecomment-2379175936, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3OV5YGNLZANRSM6OWL5FDZYVGRHAVCNFSM6AAAAABO634Z5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZGE3TKOJTGY . You are receiving this because you were mentioned.Message ID: @.***>