Skip to content

Commit

Permalink
Fix DeploymentConfig and BuildConfig update
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Tuček committed Dec 14, 2023
1 parent 8e8a7b1 commit 8e63994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/cz/xtf/core/openshift/OpenShift.java
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public Map<String, String> getDeploymentConfigEnvVars(String name) {
}

public DeploymentConfig updateDeploymentconfig(DeploymentConfig deploymentConfig) {
return deploymentConfigs().withName(deploymentConfig.getMetadata().getName()).replace();
return deploymentConfigs().withName(deploymentConfig.getMetadata().getName()).replace(deploymentConfig);
}

/**
Expand Down Expand Up @@ -876,7 +876,7 @@ public Map<String, String> getBuildConfigEnvVars(String name) {
}

public BuildConfig updateBuildConfig(BuildConfig buildConfig) {
return buildConfigs().withName(buildConfig.getMetadata().getName()).replace();
return buildConfigs().withName(buildConfig.getMetadata().getName()).replace(buildConfig);
}

/**
Expand Down

0 comments on commit 8e63994

Please sign in to comment.