public boolean syncNamespace(DefaultAcsClient client) throws Exception {
		if (StringUtils.isEmpty(properties.getNamespace())) {
			logger.error("please set {}.namespace", SchedulerxProperties.CONFIG_PREFIX);
			throw new IOException(String.format("please set %s.namespace", SchedulerxProperties.CONFIG_PREFIX));
		}

		if (StringUtils.isEmpty(properties.getNamespaceName())) {
			logger.error("please set {}.namespaceName", SchedulerxProperties.CONFIG_PREFIX);
			throw new IOException(String.format("please set %s.namespaceName", SchedulerxProperties.CONFIG_PREFIX));
		}

		CreateNamespaceRequest request = new CreateNamespaceRequest();
		request.setUid(properties.getNamespace());
		request.setName(properties.getNamespaceName());
		request.setSource(getNamespaceSource());
		CreateNamespaceResponse response = client.getAcsResponse(request);
		if (response.getSuccess()) {
			logger.info(JsonUtil.toJson(response));
			return true;
		}
		else {
			throw new IOException(response.getMessage());
		}

	}
sync namespace.

@param client pop client
@return true if success
@throws Exception sync namespace exception
spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-schedulerx/src/main/java/com/alibaba/cloud/scheduling/schedulerx/service/JobSyncService.java