Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wind57 committed Nov 25, 2024
1 parent 8ce1488 commit 9947014
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ AbstractEnvironment environment() {
// KubernetesClientConfigMapPropertySource,
// otherwise we can't properly test reload functionality
ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties(true, List.of(),
List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, FAIL_FAST,
RetryProperties.DEFAULT);
Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, FAIL_FAST, RetryProperties.DEFAULT);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

PropertySource<?> propertySource = new KubernetesClientConfigMapPropertySourceLocator(coreV1Api,
Expand All @@ -224,7 +223,7 @@ ConfigReloadProperties configReloadProperties() {
@Bean
@Primary
ConfigMapConfigProperties configMapConfigProperties() {
return new ConfigMapConfigProperties(true, List.of(), List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
return new ConfigMapConfigProperties(true, List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
false, true, FAIL_FAST, RetryProperties.DEFAULT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ AbstractEnvironment environment() {
// KubernetesClientConfigMapPropertySource,
// otherwise we can't properly test reload functionality
SecretsConfigProperties secretsConfigProperties = new SecretsConfigProperties(true, Map.of(), List.of(),
List.of(), true, SECRET_NAME, NAMESPACE, false, true, FAIL_FAST, RetryProperties.DEFAULT);
true, SECRET_NAME, NAMESPACE, false, true, FAIL_FAST, RetryProperties.DEFAULT);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

PropertySource<?> propertySource = new KubernetesClientSecretsPropertySourceLocator(coreV1Api,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ AbstractEnvironment environment() {
// simulate that environment already has a Fabric8ConfigMapPropertySource,
// otherwise we can't properly test reload functionality
ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties(true, List.of(),
List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

PropertySource<?> propertySource = new VisibleFabric8ConfigMapPropertySourceLocator(kubernetesClient,
Expand All @@ -184,7 +184,7 @@ ConfigReloadProperties configReloadProperties() {
@Bean
@Primary
ConfigMapConfigProperties configMapConfigProperties() {
return new ConfigMapConfigProperties(true, List.of(), List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
return new ConfigMapConfigProperties(true, List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
false, true, FAIL_FAST, RetryProperties.DEFAULT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ AbstractEnvironment environment() {
// Fabric8SecretsPropertySourceLocator,
// otherwise we can't properly test reload functionality
SecretsConfigProperties secretsConfigProperties = new SecretsConfigProperties(true, Map.of(), List.of(),
List.of(), true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

PropertySource<?> propertySource = new VisibleFabric8SecretsPropertySourceLocator(kubernetesClient,
Expand All @@ -191,7 +191,7 @@ ConfigReloadProperties configReloadProperties() {
@Bean
@Primary
SecretsConfigProperties secretsConfigProperties() {
return new SecretsConfigProperties(true, Map.of(), List.of(), List.of(), true, SECRET_NAME, NAMESPACE,
return new SecretsConfigProperties(true, Map.of(), List.of(), true, SECRET_NAME, NAMESPACE,
false, true, FAIL_FAST, RetryProperties.DEFAULT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ AbstractEnvironment environment() {
// simulate that environment already has a Fabric8ConfigMapPropertySource,
// otherwise we can't properly test reload functionality
ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties(true, List.of(),
List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

PropertySource<?> propertySource = new VisibleFabric8ConfigMapPropertySourceLocator(kubernetesClient,
Expand All @@ -174,7 +174,7 @@ ConfigReloadProperties configReloadProperties() {
@Bean
@Primary
ConfigMapConfigProperties configMapConfigProperties() {
return new ConfigMapConfigProperties(true, List.of(), List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
return new ConfigMapConfigProperties(true, List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
false, true, FAIL_FAST, RetryProperties.DEFAULT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ AbstractEnvironment environment() {
// simulate that environment already has a Fabric8SecretsPropertySource,
// otherwise we can't properly test reload functionality
SecretsConfigProperties secretsConfigProperties = new SecretsConfigProperties(true, Map.of(), List.of(),
List.of(), true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

PropertySource<?> propertySource = new VisibleFabric8SecretsPropertySourceLocator(kubernetesClient,
Expand All @@ -181,7 +181,7 @@ ConfigReloadProperties configReloadProperties() {
@Bean
@Primary
SecretsConfigProperties secretsConfigProperties() {
return new SecretsConfigProperties(true, Map.of(), List.of(), List.of(), true, SECRET_NAME, NAMESPACE,
return new SecretsConfigProperties(true, Map.of(), List.of(), true, SECRET_NAME, NAMESPACE,
false, true, FAIL_FAST, RetryProperties.DEFAULT);
}

Expand Down

0 comments on commit 9947014

Please sign in to comment.