We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0683329 commit d56e9efCopy full SHA for d56e9ef
1 file changed
src/main/java/com/wlanboy/javahttpclient/controller/DiagnosticController.java
@@ -1,7 +1,6 @@
1
package com.wlanboy.javahttpclient.controller;
2
3
import com.wlanboy.javahttpclient.client.K8sDiagnosticService;
4
-import org.springframework.beans.factory.annotation.Autowired;
5
import org.springframework.http.ResponseEntity;
6
import org.springframework.web.bind.annotation.*;
7
@@ -12,8 +11,11 @@
12
11
@RequestMapping("/api/k8s")
13
public class DiagnosticController {
14
15
- @Autowired
16
- private K8sDiagnosticService k8sService;
+ private final K8sDiagnosticService k8sService;
+
+ public DiagnosticController(K8sDiagnosticService k8sService) {
17
+ this.k8sService = k8sService;
18
+ }
19
20
/**
21
* Liefert den allgemeinen K8s Kontext (Namespace, Pod, Sidecar Status).
0 commit comments