Skip to content

Commit

Permalink
Issue-Fix-#2522 refactor: changed deprecated method
Browse files Browse the repository at this point in the history
Signed-off-by: l3002 <tanmaymathpal4545@gmail.com>
  • Loading branch information
l3002 committed Jan 12, 2024
1 parent 14ce5a4 commit 13366df
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 13366df

Please sign in to comment.