Commit bc695e9
mcpservers: skip cert-expiry check in self-hosted mode, validate --output (#1676)
dapr mcpservers ran kubernetes.CheckForCertExpiry unconditionally in
PostRun, so a purely local resources-directory listing reached for
kubeconfig and cluster access; guard it behind kubernetesMode like
dapr list does. Also validate --output in PreRun, matching dapr list,
instead of silently accepting unknown values.
Fixes #1675
Signed-off-by: Mukul <nmukul32@gmail.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>1 parent 8ec5213 commit bc695e9
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
| |||
0 commit comments