How to invoke kopf when only operating against cluster level resources
iciclespider opened this issue · comments
Patrick J. McNerthney commented
Keywords
cluster only
Problem
When kopf is invoked without either --namespace or --all-namespaces, the following warning is emitted:
/opt/aws-auth/.venv/lib/python3.11/site-packages/kopf/_core/reactor/running.py:176: FutureWarning: Absence of either namespaces or cluster-wide flag will become an error soon. For now, switching to the cluster-wide mode for backward compatibility.
warnings.warn("Absence of either namespaces or cluster-wide flag will become an error soon."
My operator is only operating against cluster level crds.
How should kopf be invoked in this case?
Maxence Boutet commented
You should use the --all-namespaces
flag if your operator is operating cluster-wide, i.e. handling resources in all namespaces.
Steven Armstrong commented
@iciclespider please close this issue if your question is answered.