1
- use std:: {
2
- collections:: { BTreeMap , HashMap } ,
3
- num:: TryFromIntError ,
4
- } ;
1
+ use std:: collections:: { BTreeMap , HashMap } ;
5
2
6
3
use product_config:: types:: PropertyNameKind ;
7
4
use security:: AuthenticationConfig ;
@@ -22,10 +19,9 @@ use stackable_operator::{
22
19
fragment:: { self , Fragment , ValidationError } ,
23
20
merge:: { Atomic , Merge } ,
24
21
} ,
25
- crd:: listener:: v1alpha1:: Listener ,
26
22
k8s_openapi:: {
27
23
DeepMerge ,
28
- api:: core:: v1:: { EnvVar , Pod , PodTemplateSpec } ,
24
+ api:: core:: v1:: { EnvVar , PodTemplateSpec } ,
29
25
apimachinery:: pkg:: api:: resource:: Quantity ,
30
26
} ,
31
27
kube:: { CustomResource , ResourceExt , runtime:: reflector:: ObjectRef } ,
@@ -111,29 +107,6 @@ pub enum Error {
111
107
#[ snafu( display( "incompatible merge types" ) ) ]
112
108
IncompatibleMergeTypes ,
113
109
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
-
137
110
#[ snafu( display( "role-group is not valid" ) ) ]
138
111
NoRoleGroup ,
139
112
}
0 commit comments