Skip to content

Commit

Permalink
[TH2-5132] Corrected after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Nov 29, 2023
1 parent 5f01948 commit 133fe17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/exactpro/th2/inframgr/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 133fe17

Please sign in to comment.