arquillian / arquillian-cube

Control (docker, kubernetes, openshift) containers in your tests with ease!
http://arquillian.org/arquillian-cube/
117 stars 98 forks source link

F8OpenShiftAdapter and OpenShiftAssistantTemplate resolve version upgrade class parameter changes. #1291

Closed rsearls closed 6 months ago

rsearls commented 7 months ago
In method F8OpenShiftAdapter.createProject stmt client.projectrequests()
returns class io.fabric8.openshift.client.dsl.ProjectRequestOperation
The definition for intf ProjectRequestOperation changed significantly
between io.fabric8 version 4.0.2 and 5.12.4.  Evaluation and alterations 
are needed

In method F8OpenShiftAdapter.deletePod the generics used in defining
class PodResource has changed significantly between io.fabric8 version 
4.0.2 and 5.12.4.  Class DoneablePod no longer exists in io.fabric8 5.12.4;
no deprecation stmt found to direct one how to address this.

In method F8OpenShiftAdapter.triggerDeploymentConfigUpdate the generics used in defining
class DeployableScalableResource has changed significantly between io.fabric8 version 
4.0.2 and 5.12.4.  Class DoneableDeploymentConfig no longer exists in io.fabric8 5.12.4;
no deprecation stmt found to direct one how to address this.

In method F8OpenShiftAdapter.createHandler class io.fabric8.kubernetes.api.model.Handler
is referenced, but it no longer exists in io.fabric8 5.12.4.  There is
no clear replacement for it.

In method F8OpenShiftAdapter.processTemplate the generics used in defining
class TemplateResource has changed significantly between io.fabric8 version 
4.0.2 and 5.12.4.  Class DoneableTemplate no longer exists in io.fabric8 5.12.4;
no deprecation stmt found to direct one how to address this.

In method OpenShiftAssistantTemplate.processTemplate the generics used in defining
class TemplateResource has changed significantly between io.fabric8 version 
4.0.2 and 5.12.4.  Class DoneableTemplate no longer exists in io.fabric8 5.12.4;
no deprecation stmt found to direct one how to address this.

In method F8OpenShiftAdapter.getLog the generics used in defining class
NonNamespaceOperation has changed significantly between io.fabric8 version 
4.0.2 and 5.12.4.  Class DoneablePod no longer exists in io.fabric8 5.12.4;
no deprecation stmt found to direct one how to address this.

In methods SecretsAndServiceAccountVisitor.createServiceAccount and SecretsAndServiceAccountVisitor.generateSecrets the generics used in defining class NonNamespaceOperation has changed significantly between io.fabric8 version 4.0.2 and 5.12.4. There is no clear replacement for it.

[ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[159,13] cannot find symbol [ERROR] symbol: method createNew() [ERROR] location: interface io.fabric8.openshift.client.dsl.ProjectRequestOperation [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[181,26] cannot find symbol [ERROR] symbol: class DoneablePod [ERROR] location: class org.arquillian.cube.openshift.impl.fabric8.F8OpenShiftAdapter [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[181,20] wrong number of type arguments; required 1 [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[183,18] type io.fabric8.kubernetes.client.dsl.Deletable does not take parameters [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[194,60] cannot find symbol [ERROR] symbol: class DoneableDeploymentConfig [ERROR] location: class org.arquillian.cube.openshift.impl.fabric8.F8OpenShiftAdapter [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[194,41] wrong number of type arguments; required 1 [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[313,13] cannot find symbol [ERROR] symbol: class Handler [ERROR] location: class org.arquillian.cube.openshift.impl.fabric8.F8OpenShiftAdapter [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[333,9] cannot find symbol [ERROR] symbol: class Handler [ERROR] location: class org.arquillian.cube.openshift.impl.fabric8.F8OpenShiftAdapter [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[333,38] cannot find symbol [ERROR] symbol: class Handler [ERROR] location: class org.arquillian.cube.openshift.impl.fabric8.F8OpenShiftAdapter [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[411,56] cannot find symbol [ERROR] symbol: class DoneableTemplate [ERROR] location: class org.arquillian.cube.openshift.impl.fabric8.F8OpenShiftAdapter [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[411,29] wrong number of type arguments; required 2 [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[521,45] cannot find symbol [ERROR] symbol: class DoneablePod [ERROR] location: class org.arquillian.cube.openshift.impl.fabric8.F8OpenShiftAdapter [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[521,75] cannot find symbol [ERROR] symbol: class DoneablePod [ERROR] location: class org.arquillian.cube.openshift.impl.fabric8.F8OpenShiftAdapter [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[521,69] wrong number of type arguments; required 1 [ERROR] /home/rsearls/j1/arquillian-cube/openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/fabric8/F8OpenShiftAdapter.java:[521,30] wrong number of type arguments; required 3

This issue depends on https://github.com/arquillian/arquillian-cube/issues/1270 being resolved first. See tracker doc, https://github.com/arquillian/arquillian-cube/issues/1279

rsearls commented 6 months ago

Resolved by https://github.com/arquillian/arquillian-cube/issues/ Bumping Fabric8 version to 6.9.