kopf icon indicating copy to clipboard operation
kopf copied to clipboard

A Python framework to write Kubernetes operators in just a few lines of code

Results 189 kopf issues
Sort by recently updated
recently updated
newest added

### Long story short I want to define an admission handler that gets triggered by Pod creation or updates. [The documentation says](https://kopf.readthedocs.io/en/stable/admission/#handler-options) that I need to add two decorators to...

bug

### Long story short When trying to configure Webhooks we get an exception: "ValueError: reuse_port not supported by socket module". After a bit of searching we came across that port...

bug

### Keywords ApiException, serviceAccount ### Problem I wrote a very simple operator: https://gist.github.com/ric79/a650386d3cd8fade16b18827864efd7b#file-text-analyzer-py If I run locally, it is all ok The deployment is without service account ``` $ more...

question

**TL;DR:** Process the events/changes asap, with no artificial delays (even 0.1s), stop skipping some of the events under high load, prevent double-execution if 3rd parties also patch the resources. ##...

enhancement
refactoring

### Keywords Admission Controller, Authentication ### Problem ## Summary I would like to use kopf as an Admission Controller. Currently it looks like kopf always wants to authenticate with the...

question

### Keywords kopf, eks, service account token, kubernetes ### Problem Hi, we're using kopf deployed to Kubernetes on AWS EKS service. With Kubernetes version 1.21 the service account token lifetime...

question

### Problem When stacking handlers: ``` @kopf.on.resume("xxx.test", "workshopenvironments") @kopf.on.create("xxx.test", "workshopenvironments") @kopf.on.update("xxx.test", "workshopenvironments") @kopf.on.timer("xxx.test", "workshopenvironments", interval=15.0) def workshopenvironment_reconcile( reason, name, uid, body, workshopsessions_index, patch, memo, logger, **_ ): ... ``` you...

enhancement

Utilise a new library — https://github.com/nolar/looptime — to have a fake time in event loops. The library does a lot of things, but the most important one is the sharp...

automation

### Long story short The short of it is that when authentication fails, possibly a transient issue (currently original trigger as to why is unknown), the kopf main event loop...

bug

### Long story short Following the walkthrough, I was working on [diffs](https://kopf.readthedocs.io/en/stable/walkthrough/diffs/). After applying the change, I was adding, removing labels to observe the results. Eventually I ended up with:...

bug