implement CRD logic for fromTemplatedYamlFile()
some0ne2 opened this issue · 0 comments
some0ne2 commented
After implementing my own CRD:
<?php
namespace App\Http\Helpers;
use RenokiCo\PhpK8s\Contracts\InteractsWithK8sCluster;
use RenokiCo\PhpK8s\Kinds\K8sResource;
class OwnService extends K8sResource implements InteractsWithK8sCluster
{
protected static $kind = 'OwnService';
protected static $defaultVersion = 'own.k8s.ownService/v1';
protected static $namespaceable = true;
}
Is there any chance this own CRD can be used somehow when I use fromTemplatedYamlFile()
or is this function only useable for all "predefined" resources?
Otherwise it shows an empty array all the time:
$cm = LaravelK8sFacade::fromYamlFile('ownService.yml');
dd($cm); // []
Solved by macros.