splunk / qbec

configure kubernetes objects on multiple clusters using jsonnet

Home Page:https://qbec.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emit a warning when remote list uses cluster scoped listings

gotwarlost opened this issue · comments

Sometimes, the list scope is turned into a cluster scoped query even when the caller assumes this will be namespace-scoped. This may happen for example, when a default namespace is not set for a cluster (qbec assumes "default") and all objects belong to another foo namespace.

Such errors are usually hard to track down. Add a warning when qbec switches to cluster scoped queries to make debugging easier.