Blueshoe / pytest-kubernetes

A :arrow_right: pytest plugin to make the management of (local) Kubernetes clusters a breeze. :rocket:
Apache License 2.0
22 stars 3 forks source link

Testing with CRDs (custom resource definition) #35

Open egegunes opened 1 month ago

egegunes commented 1 month ago

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?

liquidiert commented 1 month ago

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?