diff --git a/src/main/java/com/exactpro/th2/inframgr/Config.java b/src/main/java/com/exactpro/th2/inframgr/Config.java index c2ba5cf..57901e4 100644 --- a/src/main/java/com/exactpro/th2/inframgr/Config.java +++ b/src/main/java/com/exactpro/th2/inframgr/Config.java @@ -40,6 +40,7 @@ import java.nio.file.Files; import java.nio.file.Path; +// TODO: instant this class as spring @Bean instead of singleton public class Config { private static final Logger LOGGER = LoggerFactory.getLogger(Config.class); diff --git a/src/main/java/com/exactpro/th2/inframgr/NamespaceController.java b/src/main/java/com/exactpro/th2/inframgr/NamespaceController.java index 160dec1..fac6855 100644 --- a/src/main/java/com/exactpro/th2/inframgr/NamespaceController.java +++ b/src/main/java/com/exactpro/th2/inframgr/NamespaceController.java @@ -21,7 +21,6 @@ import com.exactpro.th2.inframgr.k8s.K8sCustomResource; import com.exactpro.th2.inframgr.statuswatcher.Condition; import com.exactpro.th2.inframgr.statuswatcher.ResourceCondition; -import com.exactpro.th2.inframgr.statuswatcher.StatusCache; import com.exactpro.th2.infrarepo.git.Gitter; import com.exactpro.th2.infrarepo.git.GitterContext; import com.exactpro.th2.infrarepo.repo.Repository; @@ -34,7 +33,6 @@ import jakarta.servlet.http.HttpServletRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.DeleteMapping; @@ -59,9 +57,6 @@ public class NamespaceController { public static final String BAD_RESOURCE_NAME = "BAD_RESOURCE_NAME"; - @Autowired - private StatusCache statusCache; - @DeleteMapping("/namespace/{schemaName}") @ResponseBody public String getResourceDeploymentStatuses(HttpServletRequest request,