INNER CODE UNIT · Python
freeze
nolar/kopf · kopf/cli.py:126
def freeze(
__controls: CLIControls,
id: str | None,
message: str | None,
lifetime: int,
namespaces: Collection[references.NamespacePattern],
clusterwide: bool,
peering_name: str,
priority: int,
dev: bool,
) -> None:
""" Pause the resource handling in the operator(s). """
priority = 666 if dev else priority
identity = peering.Identity(id) if id else peering.detect_own_id(manual=True)
insights = references.Insights()
settings = configuration.OperatorSettings()
settings.peering.name = peering_name
settings.peering.priority = priority