Skip to content

Commit

Permalink
bump openshift-client to 5.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
simkam authored and mnovak1 committed Jan 6, 2022
1 parent 2961cae commit 0649adf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ private String detectClusterVersionFromCluster() {
// admin is required for operation
try {
NonNamespaceOperation<ClusterVersion, ClusterVersionList, Resource<ClusterVersion>> op = OpenShiftHandlers
.getOperation(ClusterVersion.class, ClusterVersionList.class, OpenShifts.admin().getHttpClient(),
OpenShifts.admin().getConfiguration());
.getOperation(ClusterVersion.class, ClusterVersionList.class, OpenShifts.admin());
openshiftVersion = op.withName("version").get().getStatus().getDesired().getVersion();
} catch (KubernetesClientException kce) {
log.warn("xtf.openshift.version isn't configured and automatic version detection failed.", kce);
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/cz/xtf/core/openshift/OpenShift.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ protected static synchronized ServiceLoader<CustomResourceDefinitionContextProvi
public OpenShift(OpenShiftConfig openShiftConfig) {
super(openShiftConfig);

appsAPIGroupClient = new AppsAPIGroupClient(httpClient, openShiftConfig);
appsAPIGroupClient = new AppsAPIGroupClient(this);

this.waiters = new OpenShiftWaiters(this);
}
Expand Down
3 changes: 1 addition & 2 deletions core/src/main/java/cz/xtf/core/openshift/PodShell.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import io.fabric8.kubernetes.api.model.Pod;
import io.fabric8.kubernetes.client.dsl.ExecListener;
import lombok.extern.slf4j.Slf4j;
import okhttp3.Response;

@Slf4j
public class PodShell {
Expand Down Expand Up @@ -71,7 +70,7 @@ public class StateExecListener implements ExecListener {
private final AtomicBoolean executionDone = new AtomicBoolean(false);

@Override
public void onOpen(Response response) {
public void onOpen() {
// DO NOTHING
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

<!-- Dependency version properties -->
<version.httpclient>4.5.13</version.httpclient>
<version.openshift-client>5.9.0</version.openshift-client>
<version.openshift-client>5.11.1</version.openshift-client>
<version.commons-io>2.8.0</version.commons-io>
<version.commons-lang3>3.11</version.commons-lang3>
<version.commons-compress>1.21</version.commons-compress>
Expand Down

0 comments on commit 0649adf

Please sign in to comment.