๐Getting started
Each CRD must extend the K8sResource
class. This will provide the base PHP API functionalities that you can work with your resource.
Additionally, to be able to interact with the cluster and actually perform operations on it, you should implement the InteractsWithK8sCluster
interface.
The following example will create an IngressRoute
CRD-ready class for traefik.containo.us/v1alpha1
:
For non-namespaceable resources, you shall set the $namespaceable
variable to false
.
Last updated