@@ -20,7 +20,7 @@ use k8s_openapi::{
2020 apps:: v1:: { StatefulSet , StatefulSetSpec , StatefulSetUpdateStrategy } ,
2121 core:: v1:: {
2222 Capabilities , ConfigMap , ConfigMapVolumeSource , Container , ContainerPort , EnvVar ,
23- EnvVarSource , KeyToPath , Pod , PodSecurityContext , PodSpec , PodTemplateSpec , Probe ,
23+ EnvVarSource , KeyToPath , PodSecurityContext , PodSpec , PodTemplateSpec , Probe ,
2424 SeccompProfile , Secret , SecretKeySelector , SecretVolumeSource , SecurityContext ,
2525 Service , ServiceAccount , ServicePort , ServiceSpec , TCPSocketAction , Toleration , Volume ,
2626 VolumeMount ,
@@ -182,7 +182,6 @@ impl Resources {
182182 let role_api: Api < Role > = Api :: namespaced ( client. clone ( ) , namespace) ;
183183 let role_binding_api: Api < RoleBinding > = Api :: namespaced ( client. clone ( ) , namespace) ;
184184 let statefulset_api: Api < StatefulSet > = Api :: namespaced ( client. clone ( ) , namespace) ;
185- let pod_api: Api < Pod > = Api :: namespaced ( client. clone ( ) , namespace) ;
186185 let certificate_api: Api < Certificate > = Api :: namespaced ( client. clone ( ) , namespace) ;
187186 let configmap_api: Api < ConfigMap > = Api :: namespaced ( client. clone ( ) , namespace) ;
188187
@@ -1735,7 +1734,3 @@ enum BecomeLeaderResult {
17351734struct SkipCatchupError {
17361735 message : String ,
17371736}
1738-
1739- fn statefulset_pod_name ( statefulset : & StatefulSet , idx : u64 ) -> String {
1740- format ! ( "{}-{}" , statefulset. name_unchecked( ) , idx)
1741- }
0 commit comments