MCPcopy Create free account
hub / github.com/PostHog/duckgres / isProdContext

Function isProdContext

controlplane/admin/devserver/main.go:208–210  ·  view source on GitHub ↗

isProdContext reports whether a kube-context name denotes production.

(ctx string)

Source from the content-addressed store, hash-verified

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.

Callers 2

mainFunction · 0.85
serveClusterInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected