@@ -14,9 +14,9 @@ use crate::{
1414 svc:: {
1515 cfg:: Configuration ,
1616 crd:: {
17- config_provider :: ConfigProvider , elasticsearch :: ElasticSearch , keycloak :: Keycloak ,
18- kv:: KV , matomo:: Matomo , metabase:: Metabase , mongodb:: MongoDb , mysql :: MySql ,
19- otoroshi:: Otoroshi , postgresql:: PostgreSql , pulsar:: Pulsar , redis:: Redis ,
17+ azimutt :: Azimutt , config_provider :: ConfigProvider , elasticsearch :: ElasticSearch ,
18+ keycloak :: Keycloak , kv:: KV , matomo:: Matomo , metabase:: Metabase , mongodb:: MongoDb ,
19+ mysql :: MySql , otoroshi:: Otoroshi , postgresql:: PostgreSql , pulsar:: Pulsar , redis:: Redis ,
2020 } ,
2121 } ,
2222} ;
@@ -38,6 +38,7 @@ pub enum CustomResource {
3838 Keycloak ,
3939 Matomo ,
4040 Otoroshi ,
41+ Azimutt ,
4142}
4243
4344impl FromStr for CustomResource {
@@ -58,10 +59,11 @@ impl FromStr for CustomResource {
5859 "keycloak" => Ok ( Self :: Keycloak ) ,
5960 "matomo" => Ok ( Self :: Matomo ) ,
6061 "otoroshi" => Ok ( Self :: Otoroshi ) ,
62+ "azimutt" => Ok ( Self :: Azimutt ) ,
6163 _ => Err ( format ! (
6264 "failed to parse '{s}', available options are: 'postgresql', 'redis', \
6365 'mysql', 'mongodb, 'pulsar', 'config-server', 'elasticsearch', 'kv', \
64- 'metabase', 'keycloak', 'matomo' and 'otoroshi '"
66+ 'metabase', 'keycloak', 'matomo', 'otoroshi' and 'azimutt '"
6567 )
6668 . into ( ) ) ,
6769 }
@@ -135,6 +137,8 @@ pub async fn view(
135137 . map_err( CustomResourceDefinitionError :: Serialize ) ?,
136138 CustomResource :: Otoroshi => serde_yaml:: to_string( & Otoroshi :: crd( ) )
137139 . map_err( CustomResourceDefinitionError :: Serialize ) ?,
140+ CustomResource :: Azimutt => serde_yaml:: to_string( & Azimutt :: crd( ) )
141+ . map_err( CustomResourceDefinitionError :: Serialize ) ?,
138142 } ]
139143 } else {
140144 vec ! [
@@ -161,6 +165,8 @@ pub async fn view(
161165 . map_err( CustomResourceDefinitionError :: Serialize ) ?,
162166 serde_yaml:: to_string( & Otoroshi :: crd( ) )
163167 . map_err( CustomResourceDefinitionError :: Serialize ) ?,
168+ serde_yaml:: to_string( & Azimutt :: crd( ) )
169+ . map_err( CustomResourceDefinitionError :: Serialize ) ?,
164170 ]
165171 } ;
166172
0 commit comments