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 dd2db12 commit 51d0b94
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ AbstractEnvironment environment() {
// 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);
RetryProperties.DEFAULT, false);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

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

@Bean
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);
List.of(), true, SECRET_NAME, NAMESPACE, false, true, FAIL_FAST, RetryProperties.DEFAULT, false);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

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

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ 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);
List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT,
false);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

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

@Bean
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);
List.of(), true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT, false);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

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

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ 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);
List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT,
false);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

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

@Bean
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);
List.of(), true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT, false);
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);

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

@Bean
Expand Down

0 comments on commit 51d0b94

Please sign in to comment.