private function getConfigMapWatchCallback()
    {
        return function ($event, $watch) {
            switch ($event['type']) {
                case 'ADDED':
                case 'MODIFIED':
                    $this->state['config'] = yaml_parse($event['object']['data']['config']);
                    $this->onConfigLoaded();
                    break;
                case 'DELETED':
                    $this->state['deleted_config'] = yaml_parse($event['object']['data']['config']);
                    $this->state['config'] = null;
                    $this->onConfigUnloaded();
                    break;
            }
        };
    }