Skip to content

Commit aa2d6b5

Browse files
remove some unused code
1 parent ee55e06 commit aa2d6b5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/orchestratord/src/controller/materialize/environmentd.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

@@ -1743,7 +1742,3 @@ enum BecomeLeaderResult {
17431742
struct SkipCatchupError {
17441743
message: String,
17451744
}
1746-
1747-
fn statefulset_pod_name(statefulset: &StatefulSet, idx: u64) -> String {
1748-
format!("{}-{}", statefulset.name_unchecked(), idx)
1749-
}

0 commit comments

Comments
 (0)