@Override
    public List<V1ConfigMap> getBySelector(ApiClient apiClient, String selector, boolean label, String namespace)
            throws HyscaleException {
        CoreV1Api coreV1Api = new CoreV1Api(apiClient);
        List<V1ConfigMap> configMaps = null;
        try {
            String labelSelector = label ? selector : null;
            String fieldSelector = label ? null : selector;

            V1ConfigMapList configMapList = coreV1Api.listNamespacedConfigMap(namespace, DeployerConstants.TRUE, null, null,
                    fieldSelector, labelSelector, null, null, null, null);
            configMaps = configMapList != null ? configMapList.getItems() : null;
        } catch (ApiException e) {
            HyscaleException ex = ExceptionHelper.buildGetException(getKind(), e, ResourceOperation.GET_BY_SELECTOR);
            LOGGER.error("Error while listing ConfigMaps in namespace {}, with selectors {}, error {} ", namespace,
                    selector, ex.toString());
            throw ex;
        }
        return configMaps;
    }
Fetch from cluster, populate required field in resource call update
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/V1ConfigMapHandler.java