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
I've written an Operator in Kopf for a Custom Resource using the on.create decorator. Everyhting worked fine. Than I added untrusted Admission Controller methods (on.startup, on.mutate and on.validate) to the same Python file. After this the Admission Controller callbacks were called, Kubernetes created a Custom Resource BUT the original Operator method (on.create) was never called.
I splitted the code into two python files and have them running in parallel. Everything works fine. Admission Controller and Operator callbacks get called when I add a Custom Resource to the cluster.
I use K3s on Ubuntu. Kopf (both instances) is running inside PyCharm.
Did I miss somehting?
Best regards
Thomas
P.S. I'm rather new to Kopf, Kubernets and Python, but have a decent experience in software engineering.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello
I've written an Operator in Kopf for a Custom Resource using the on.create decorator. Everyhting worked fine. Than I added untrusted Admission Controller methods (on.startup, on.mutate and on.validate) to the same Python file. After this the Admission Controller callbacks were called, Kubernetes created a Custom Resource BUT the original Operator method (on.create) was never called.
I splitted the code into two python files and have them running in parallel. Everything works fine. Admission Controller and Operator callbacks get called when I add a Custom Resource to the cluster.
I use K3s on Ubuntu. Kopf (both instances) is running inside PyCharm.
Did I miss somehting?
Best regards
Thomas
P.S. I'm rather new to Kopf, Kubernets and Python, but have a decent experience in software engineering.
Beta Was this translation helpful? Give feedback.
All reactions