Home / Function/ createKubernetesEnvironment() — spring-boot Function Reference

createKubernetesEnvironment() — spring-boot Function Reference

Architecture documentation for the createKubernetesEnvironment() function in ConfigDataActivationContextTests.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  19cbd6f4_81a9_bfc7_960f_0eea60e995f6["createKubernetesEnvironment()"]
  2528c427_de54_7202_9490_8ab90699751d["getCloudPlatformWhenCloudPropertyInEnvironmentDeducesCloudPlatform()"]
  2528c427_de54_7202_9490_8ab90699751d -->|calls| 19cbd6f4_81a9_bfc7_960f_0eea60e995f6
  f71a7de4_7a0b_899d_d309_a9957cb05142["getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform()"]
  f71a7de4_7a0b_899d_d309_a9957cb05142 -->|calls| 19cbd6f4_81a9_bfc7_960f_0eea60e995f6
  4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"]
  19cbd6f4_81a9_bfc7_960f_0eea60e995f6 -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6
  style 19cbd6f4_81a9_bfc7_960f_0eea60e995f6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataActivationContextTests.java lines 88–97

	private MockEnvironment createKubernetesEnvironment() {
		MockEnvironment environment = new MockEnvironment();
		Map<String, Object> map = new LinkedHashMap<>();
		map.put("KUBERNETES_SERVICE_HOST", "host");
		map.put("KUBERNETES_SERVICE_PORT", "port");
		PropertySource<?> propertySource = new MapPropertySource(
				StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, map);
		environment.getPropertySources().addLast(propertySource);
		return environment;
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does createKubernetesEnvironment() do?
createKubernetesEnvironment() is a function in the spring-boot codebase.
What does createKubernetesEnvironment() call?
createKubernetesEnvironment() calls 1 function(s): put.
What calls createKubernetesEnvironment()?
createKubernetesEnvironment() is called by 2 function(s): getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform, getCloudPlatformWhenCloudPropertyInEnvironmentDeducesCloudPlatform.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free