pytest-kubernetes icon indicating copy to clipboard operation
pytest-kubernetes copied to clipboard

Testing with CRDs (custom resource definition)

Open egegunes opened this issue 1 year ago • 2 comments

Hey, we might be interested to use this project to test our Kubernetes Operators in Percona. I wonder if the API allows us to apply and track custom resources defined by our CRDs. Is it possible?

egegunes avatar Oct 21 '24 15:10 egegunes

Hey @egegunes! Happy to hear you want to check out pytest-kubernetes. In principle this should be possible as the api just uses kubectl apply under the hood. In the testing directory there is a hello.yaml that serves as a fixture for pytest-kubernetes testing itself. Can you work with that?

liquidiert avatar Oct 28 '24 09:10 liquidiert

Hi @egegunes How is it going? Is this still an open issue for you?

Schille avatar Oct 23 '25 06:10 Schille