1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
use fluvio_command::CommandError; use std::io::Error as IoError; use std::string::FromUtf8Error; #[derive(thiserror::Error, Debug)] pub enum HelmError { #[error( r#"Unable to find 'helm' executable Please make sure helm is installed and in your PATH. See https://helm.sh/docs/intro/install/ for more help"# )] HelmNotInstalled(IoError), #[error("Failed to read helm client version: {0}")] HelmVersionNotFound(String), #[error("Failed to connect to Kubernetes")] FailedToConnect, #[error("Failed to parse helm output as UTF8")] Utf8Error(#[from] FromUtf8Error), #[error("Failed to parse JSON from helm output")] Serde(#[from] serde_json::Error), #[error("Failed to execute a command")] Command(#[from] CommandError), }