Closed razvan closed 8 months ago
That#s the behavior of the underlying (go) helm lib. We could check via Rust if the versions exists but for my personally the error message failed to download "stackable-test/nifi-operator" at version "0.6.0-pr353"
is sufficient enough. The helm lib is also used to install helm-charts not provided by us (e.g. minio or postgres)
I agree with both of you. The error message is good but the panic after is not good. I'll tag this as a bug for now, but it's not too critical.
This is now improved. See https://github.com/stackabletech/stackable-cockpit/blob/dd978a9003846cd8938a560d1bf1c9c019c997fa/src/helm.rs#L136-L139
This will now return and display an error:
Installing 1 operator
Installing foo operator
Error: operator command error
Caused by these errors (recent errors listed first):
1: Helm error
2: failed to install Helm release *
3: helm error: chart "foo-operator" matching >0.0.0-0 not found in stackable-dev index. (try 'helm repo update'): no chart name found
This will now only panic when the Go Helm wrapper fails (for example when creating a Helm client in Go). So guess we can close this.
Yeah I'm getting:
Installed secret operator
Installed commons operator
ERROR Go wrapper function go_install_helm_release encountered an error: chart "nifi-operator" matching 0.6.0-pr353 not found in stackable-test index. (try 'helm repo update'): no chart version found for nifi-operator-0.6.0-pr353
at rust/stackable-cockpit/src/helm.rs:279
An unrecoverable error occured: failed to execute operator (sub)command
Caused by these errors (recent errors listed first):
1: Helm error
2: failed to install Helm release
3: helm error
I'm closing this, as there is no coredump anymore and the error message looks sensible
Description
The operator
nifi=0.6.0-pr353
doesn't exist andstackablectl
crashes.