class KubernetesClientAutoConfiguration {

	/**
	 * this bean will be based on
	 * {@link org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties}
	 * in the next major release.
	 */
	@Deprecated(forRemoval = true)
	@Bean
	@ConditionalOnMissingBean
	public ApiClient apiClient(Environment environment) {<FILL_FUNCTION_BODY>}

	@Bean
	@ConditionalOnMissingBean
	public CoreV1Api coreApi(ApiClient apiClient) {
		return new CoreV1Api(apiClient);
	}

	@Bean
	@ConditionalOnMissingBean
	public KubernetesNamespaceProvider kubernetesNamespaceProvider(Environment environment) {
		return new KubernetesNamespaceProvider(environment);
	}

	@Bean
	@ConditionalOnMissingBean
	public KubernetesClientPodUtils kubernetesPodUtils(CoreV1Api client,
			KubernetesNamespaceProvider kubernetesNamespaceProvider) {
		return new KubernetesClientPodUtils(client, kubernetesNamespaceProvider.getNamespace(), true);
	}

}

		ApiClient apiClient = kubernetesApiClient();
		// it's too early to inject KubernetesClientProperties here, all its properties
		// are missing. For the time being work-around with reading from the environment.
		apiClient.setUserAgent(environment.getProperty("spring.cloud.kubernetes.client.user-agent",
				KubernetesClientProperties.DEFAULT_USER_AGENT));
		return apiClient;
	
<no_super_class>