1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5 #[error("kube: {0}")]
6 WrapKube(kube::Error),
7 #[error("kube client: {0}")]
8 WrapKubeClient(String),
9 #[error("kube watcher: {0}")]
10 WrapKubeWatcher(kube::runtime::watcher::Error),
11 #[error("not found endpoint port: {0}")]
12 NotFoundPort(String),
13 #[error("parse endpoint port error: {0}")]
14 ParsePortError(String),
15 #[error("not match schema: {0}")]
16 NotMatchSchema(String),
17 #[error("host is empty")]
18 HostIsEmpty,
19}