@@ -18,12 +18,15 @@ use super::{
1818use crate :: {
1919 crd:: v1alpha1:: { self } ,
2020 framework:: {
21- ClusterName , ConfigMapName , NamespaceName , Uid ,
2221 builder:: pod:: container:: { EnvVarName , EnvVarSet } ,
2322 product_logging:: framework:: {
2423 VectorContainerLogConfig , validate_logging_configuration_for_container,
2524 } ,
2625 role_utils:: { GenericProductSpecificCommonConfig , RoleGroupConfig , with_validated_config} ,
26+ types:: {
27+ kubernetes:: { ConfigMapName , NamespaceName , Uid } ,
28+ operator:: ClusterName ,
29+ } ,
2730 } ,
2831} ;
2932
@@ -45,24 +48,34 @@ pub enum Error {
4548 GetVectorAggregatorConfigMapName { } ,
4649
4750 #[ snafu( display( "failed to set cluster name" ) ) ]
48- ParseClusterName { source : crate :: framework:: Error } ,
51+ ParseClusterName {
52+ source : crate :: framework:: macros:: attributed_string_type:: Error ,
53+ } ,
4954
5055 #[ snafu( display( "failed to set cluster namespace" ) ) ]
51- ParseClusterNamespace { source : crate :: framework:: Error } ,
56+ ParseClusterNamespace {
57+ source : crate :: framework:: macros:: attributed_string_type:: Error ,
58+ } ,
5259
5360 #[ snafu( display( "failed to set UID" ) ) ]
54- ParseClusterUid { source : crate :: framework:: Error } ,
61+ ParseClusterUid {
62+ source : crate :: framework:: macros:: attributed_string_type:: Error ,
63+ } ,
5564
5665 #[ snafu( display( "failed to parse environment variable" ) ) ]
5766 ParseEnvironmentVariable {
5867 source : crate :: framework:: builder:: pod:: container:: Error ,
5968 } ,
6069
6170 #[ snafu( display( "failed to set product version" ) ) ]
62- ParseProductVersion { source : crate :: framework:: Error } ,
71+ ParseProductVersion {
72+ source : crate :: framework:: macros:: attributed_string_type:: Error ,
73+ } ,
6374
6475 #[ snafu( display( "failed to set role-group name" ) ) ]
65- ParseRoleGroupName { source : crate :: framework:: Error } ,
76+ ParseRoleGroupName {
77+ source : crate :: framework:: macros:: attributed_string_type:: Error ,
78+ } ,
6679
6780 #[ snafu( display( "failed to resolve product image" ) ) ]
6881 ResolveProductImage {
@@ -277,13 +290,18 @@ mod tests {
277290 v1alpha1:: { self } ,
278291 } ,
279292 framework:: {
280- ClusterName , ConfigMapName , ControllerName , ListenerClassName , NamespaceName ,
281- OperatorName , ProductName , ProductVersion , RoleGroupName ,
282293 builder:: pod:: container:: { EnvVarName , EnvVarSet } ,
283294 product_logging:: framework:: {
284295 ValidatedContainerLogConfigChoice , VectorContainerLogConfig ,
285296 } ,
286297 role_utils:: { GenericProductSpecificCommonConfig , RoleGroupConfig } ,
298+ types:: {
299+ kubernetes:: { ConfigMapName , ListenerClassName , NamespaceName } ,
300+ operator:: {
301+ ClusterName , ControllerName , OperatorName , ProductName , ProductVersion ,
302+ RoleGroupName ,
303+ } ,
304+ } ,
287305 } ,
288306 } ;
289307
0 commit comments