Skip to content

Commit

Permalink
DebugServiceTest uses deprecated kubernetesClient.createOr() (#2551)
Browse files Browse the repository at this point in the history
  • Loading branch information
l3002 authored Jan 16, 2024
1 parent 97c0923 commit 31ef8be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import io.fabric8.kubernetes.api.model.apps.ReplicaSetBuilder;
import io.fabric8.kubernetes.api.model.apps.ReplicaSetSpecBuilder;
import io.fabric8.kubernetes.client.NamespacedKubernetesClient;
import io.fabric8.kubernetes.client.dsl.NonDeletingOperation;
import io.fabric8.kubernetes.client.server.mock.EnableKubernetesMockClient;
import io.fabric8.kubernetes.client.server.mock.KubernetesMockServer;
import io.fabric8.openshift.api.model.DeploymentConfig;
Expand Down Expand Up @@ -168,7 +169,7 @@ void enableDebuggingWithReplicaSet() {
void enableDebuggingWithReplicationController() {
// Given
final ReplicationController replicationController = initReplicationController();
kubernetesClient.resource(replicationController).createOrReplace();
kubernetesClient.resource(replicationController).createOr(NonDeletingOperation::update);
// When
debugService.enableDebugging(replicationController, "file.name", false);
// Then
Expand Down

0 comments on commit 31ef8be

Please sign in to comment.