fix: docker-image would not build due to syntax mistake
All checks were successful
/ build (push) Successful in 5m25s

This commit is contained in:
Tamipes 2026-06-08 01:00:37 +02:00
parent fb52167fc2
commit 3f8fb4a01f
3 changed files with 28 additions and 25 deletions

View file

@ -80,9 +80,6 @@ impl KubeCache {
async fn get_srv(&self, name: &str) -> Result<Service, kube::Error> {
self.srv_api.get(name).await
}
async fn list_deploys(&self) -> Vec<Arc<Deployment>> {
self.dep_cache.state()
}
async fn list_srvs(&self) -> ObjectList<Service> {
// let lp: ListParams = ListParams::default();
let lp: ListParams = ListParams::default().labels(MAIN_LABEL);
@ -90,10 +87,7 @@ impl KubeCache {
}
pub async fn query_dep(&self, addr: &str, port: &str) -> Option<Arc<Deployment>> {
let deploys = self.list_deploys().await;
deploys
.into_iter()
.find(|x| filter_label_value(x.as_ref(), addr, port))
self.dep_cache.find(|x| filter_label_value(x, addr, port))
}
pub async fn query_srv(&self, addr: &str, port: &str) -> Option<Service> {