1- use std:: {
2- collections:: { BTreeMap , HashMap } ,
3- num:: TryFromIntError ,
4- } ;
1+ use std:: collections:: { BTreeMap , HashMap } ;
52
63use product_config:: types:: PropertyNameKind ;
74use security:: AuthenticationConfig ;
@@ -22,10 +19,9 @@ use stackable_operator::{
2219 fragment:: { self , Fragment , ValidationError } ,
2320 merge:: { Atomic , Merge } ,
2421 } ,
25- crd:: listener:: v1alpha1:: Listener ,
2622 k8s_openapi:: {
2723 DeepMerge ,
28- api:: core:: v1:: { EnvVar , Pod , PodTemplateSpec } ,
24+ api:: core:: v1:: { EnvVar , PodTemplateSpec } ,
2925 apimachinery:: pkg:: api:: resource:: Quantity ,
3026 } ,
3127 kube:: { CustomResource , ResourceExt , runtime:: reflector:: ObjectRef } ,
@@ -111,29 +107,6 @@ pub enum Error {
111107 #[ snafu( display( "incompatible merge types" ) ) ]
112108 IncompatibleMergeTypes ,
113109
114- #[ snafu( display( "object has no associated namespace" ) ) ]
115- NoNamespace ,
116-
117- #[ snafu( display( "unable to get {listener} (for {pod})" ) ) ]
118- GetPodListener {
119- source : stackable_operator:: client:: Error ,
120- listener : ObjectRef < Listener > ,
121- pod : ObjectRef < Pod > ,
122- } ,
123-
124- #[ snafu( display( "{listener} (for {pod}) has no address" ) ) ]
125- PodListenerHasNoAddress {
126- listener : ObjectRef < Listener > ,
127- pod : ObjectRef < Pod > ,
128- } ,
129-
130- #[ snafu( display( "port {port} ({port_name:?}) is out of bounds, must be within {range:?}" , range = 0 ..=u16 :: MAX ) ) ]
131- PortOutOfBounds {
132- source : TryFromIntError ,
133- port_name : String ,
134- port : i32 ,
135- } ,
136-
137110 #[ snafu( display( "role-group is not valid" ) ) ]
138111 NoRoleGroup ,
139112}
0 commit comments