isProdContext reports whether a kube-context name denotes production.
(ctx string)
| 206 | w.Header().Set("Content-Type", "application/json") |
| 207 | _ = json.NewEncoder(w).Encode(map[string]any{ |
| 208 | "label": label, |
| 209 | "prod": isProdContext(label), |
| 210 | }) |
| 211 | } |
| 212 | |
| 213 | // isProdContext reports whether a kube-context name denotes production. |
no outgoing calls
no test coverage detected