You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works and the handlers are being invoked correctly, but working operators go into a patching war, one putting a finalizer while other constantly removing it.
Yes, I know peering - but from what I read the highest prio wins. I need more than one working simultanously.
Kopf version
1.36.2
Kubernetes version
1.24
Python version
3.9
Code
importkopfdefmetadata_filter() ->dict:
return {
'dev.operator.env.name': os.getenv('ENV_NAME', default='some-env')
}
@kopf.on.create('awsrequests', annotations=metadata_filter())defhandler(patch, **kwargs):
# do some stuffpass
Long story short
I tried to distinquish an operator that works in my cluster with those than my team and I run locally.
Used https://kopf.readthedocs.io/en/stable/filters/#metadata-filters for resource filtering.
It works and the handlers are being invoked correctly, but working operators go into a patching war, one putting a finalizer while other constantly removing it.
Yes, I know peering - but from what I read the highest prio wins. I need more than one working simultanously.
Kopf version
1.36.2
Kubernetes version
1.24
Python version
3.9
Code
Logs
Additional information
No response
The text was updated successfully, but these errors were encountered: