Panic when diffing an invalid kubeconfig #1543
Labels
kind/bug
Some behavior is incorrect or out of spec
p1
A bug severe enough to be the next item assigned to an engineer
resolution/fixed
This issue was fixed
Milestone
A mixture of 2 space indents in YAML and 4 space indents in Typescript caused my editor to malform the
kubeconfig
during unrelated refactoring.This causes
pulumi up
to panic when computing thediff: ~kubeconfig
Expected behavior
Some reasonable error reporting instead of process crash.
Current behavior
pulumi up
crashes with:Steps to reproduce
I've minimized the problem: https://github.com/rraval/pulumi-kubernetes-segfault
index.ts
.pulumi up
with no issues.index.ts
, Diff. This commit corrupts the indentation ofkubeconfig
, making it invalid.pulumi up
again, see panic from above.Context (Environment)
Refactoring some code to move the provider creation from top level into a function (hence the change in indentation).
Affected feature
The text was updated successfully, but these errors were encountered: