Merge branch '3.1.x' into 3.2.x

This commit is contained in:
Ryan Baxter
2025-05-06 11:18:04 -04:00
49 changed files with 1361 additions and 634 deletions

View File

@@ -53,12 +53,12 @@ import io.kubernetes.client.util.Yaml;
import jakarta.annotation.Nullable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.assertj.core.api.Assertions;
import org.testcontainers.k3s.K3sContainer;
import org.springframework.cloud.kubernetes.integration.tests.commons.Images;
import org.springframework.cloud.kubernetes.integration.tests.commons.Phase;
import static org.assertj.core.api.Fail.fail;
import static org.awaitility.Awaitility.await;
import static org.springframework.cloud.kubernetes.integration.tests.commons.Commons.loadImage;
import static org.springframework.cloud.kubernetes.integration.tests.commons.Commons.pomVersion;
@@ -548,7 +548,7 @@ public final class Util {
V1DeploymentList deployments = appsV1Api.listNamespacedDeployment(namespace, null, null, null,
"metadata.name=" + deploymentName, null, null, null, null, null, null, null);
if (deployments.getItems().isEmpty()) {
fail("No deployments with the name " + deploymentName);
Assertions.fail("No deployments with the name " + deploymentName);
}
V1Deployment deployment = deployments.getItems().get(0);
if (deployment.getStatus() != null) {
@@ -580,7 +580,7 @@ public final class Util {
V1DeploymentList deployments = new AppsV1Api().listNamespacedDeployment(namespace, null, null, null,
"metadata.name=" + deploymentName, null, null, null, null, null, null, null);
if (deployments.getItems().isEmpty()) {
fail("No deployment with name " + deploymentName);
Assertions.fail("No deployment with name " + deploymentName);
}
V1Deployment deployment = deployments.getItems().get(0);