public function registerPlugin($className)
    {
        if (!class_exists($className)) {
            throw new \Exception('cannot register unknown class as plugin: '.$className);
        }

        if (!is_subclass_of($className, '\KubernetesController\Plugin\AbstractPlugin')) {
            throw new \Exception('plugin must inherit from \KuberetesController\Plugin\AbstractPlugin: '.$className);
        }

        if (!in_array($className, $this->registeredPlugins)) {
            $this->registeredPlugins[] = $className;
        }
    }