Skip to content

Commit 996ad62

Browse files
committed
merge main
Signed-off-by: wind57 <[email protected]>
1 parent abf452a commit 996ad62

File tree

6 files changed

+8
-69
lines changed

6 files changed

+8
-69
lines changed

.github/workflows/composites/pre-test-actions/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
- name: build project
2525
shell: bash
2626
run: |
27-
./mvnw clean install -Dspring-boot.build-image.skip=true -DskipITs -DskipTests -T1C -U -B -q
27+
./mvnw clean install -P 'run-on-github-actions' -Dspring-boot.build-image.skip=true -DskipITs -DskipTests -T1C -U -B -q
2828
2929
- name: build controllers project
3030
uses: ./.github/workflows/composites/build-controllers-project

spring-cloud-kubernetes-client-autoconfig/src/main/java/org/springframework/cloud/kubernetes/client/KubernetesClientAutoConfiguration.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2020 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,20 +40,11 @@
4040
@AutoConfigureAfter(KubernetesCommonsAutoConfiguration.class)
4141
public class KubernetesClientAutoConfiguration {
4242

43-
/**
44-
* this bean will be based on
45-
* {@link org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties}
46-
* in the next major release.
47-
*/
48-
@Deprecated(forRemoval = true)
4943
@Bean
5044
@ConditionalOnMissingBean
51-
public ApiClient apiClient(Environment environment) {
45+
public ApiClient apiClient(KubernetesClientProperties clientProperties) {
5246
ApiClient apiClient = kubernetesApiClient();
53-
// it's too early to inject KubernetesClientProperties here, all its properties
54-
// are missing. For the time being work-around with reading from the environment.
55-
apiClient.setUserAgent(environment.getProperty("spring.cloud.kubernetes.client.user-agent",
56-
KubernetesClientProperties.DEFAULT_USER_AGENT));
47+
apiClient.setUserAgent(clientProperties.userAgent());
5748
return apiClient;
5849
}
5950

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/ConfigDataRetryableConfigMapPropertySourceLocator.java

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2020 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,22 +35,6 @@ public class ConfigDataRetryableConfigMapPropertySourceLocator extends ConfigMap
3535

3636
private ConfigMapPropertySourceLocator configMapPropertySourceLocator;
3737

38-
/**
39-
* This constructor is deprecated, and we do not use it anymore internally. It will be
40-
* removed in the next major release.
41-
*/
42-
@Deprecated(forRemoval = true)
43-
public ConfigDataRetryableConfigMapPropertySourceLocator(
44-
ConfigMapPropertySourceLocator configMapPropertySourceLocator, ConfigMapConfigProperties properties) {
45-
super(properties);
46-
this.configMapPropertySourceLocator = configMapPropertySourceLocator;
47-
this.retryTemplate = RetryTemplate.builder()
48-
.maxAttempts(properties.retry().maxAttempts())
49-
.exponentialBackoff(properties.retry().initialInterval(), properties.retry().multiplier(),
50-
properties.retry().maxInterval())
51-
.build();
52-
}
53-
5438
public ConfigDataRetryableConfigMapPropertySourceLocator(
5539
ConfigMapPropertySourceLocator configMapPropertySourceLocator, ConfigMapConfigProperties properties,
5640
ConfigMapCache cache) {

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/ConfigDataRetryableSecretsPropertySourceLocator.java

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2022 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,22 +34,6 @@ public class ConfigDataRetryableSecretsPropertySourceLocator extends SecretsProp
3434

3535
private SecretsPropertySourceLocator secretsPropertySourceLocator;
3636

37-
/**
38-
* This constructor is deprecated, and we do not use it anymore internally. It will be
39-
* removed in the next major release.
40-
*/
41-
@Deprecated(forRemoval = true)
42-
public ConfigDataRetryableSecretsPropertySourceLocator(SecretsPropertySourceLocator propertySourceLocator,
43-
SecretsConfigProperties secretsConfigProperties) {
44-
super(secretsConfigProperties);
45-
this.secretsPropertySourceLocator = propertySourceLocator;
46-
this.retryTemplate = RetryTemplate.builder()
47-
.maxAttempts(properties.retry().maxAttempts())
48-
.exponentialBackoff(properties.retry().initialInterval(), properties.retry().multiplier(),
49-
properties.retry().maxInterval())
50-
.build();
51-
}
52-
5337
public ConfigDataRetryableSecretsPropertySourceLocator(SecretsPropertySourceLocator propertySourceLocator,
5438
SecretsConfigProperties secretsConfigProperties, SecretsCache cache) {
5539
super(secretsConfigProperties, cache);

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/ConfigMapPropertySourceLocator.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2021 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -56,16 +56,6 @@ public abstract class ConfigMapPropertySourceLocator implements PropertySourceLo
5656

5757
protected final ConfigMapConfigProperties properties;
5858

59-
/**
60-
* This constructor is deprecated, and we do not use it anymore internally. It will be
61-
* removed in the next major release.
62-
*/
63-
@Deprecated(forRemoval = true)
64-
public ConfigMapPropertySourceLocator(ConfigMapConfigProperties properties) {
65-
this.properties = properties;
66-
this.cache = new ConfigMapCache.NOOPCache();
67-
}
68-
6959
public ConfigMapPropertySourceLocator(ConfigMapConfigProperties properties, ConfigMapCache cache) {
7060
this.properties = properties;
7161
this.cache = cache;

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/SecretsPropertySourceLocator.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2021 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -62,16 +62,6 @@ public abstract class SecretsPropertySourceLocator implements PropertySourceLoca
6262

6363
protected final SecretsConfigProperties properties;
6464

65-
/**
66-
* This constructor is deprecated, and we do not use it anymore internally. It will be
67-
* removed in the next major release.
68-
*/
69-
@Deprecated(forRemoval = true)
70-
public SecretsPropertySourceLocator(SecretsConfigProperties properties) {
71-
this.properties = properties;
72-
this.cache = new SecretsCache.NOOPCache();
73-
}
74-
7565
public SecretsPropertySourceLocator(SecretsConfigProperties properties, SecretsCache cache) {
7666
this.properties = properties;
7767
this.cache = cache;

0 commit comments

Comments
 (0)