New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OpenShift-Maven-Plugin] java.lang.ClassCastException
during oc:build
when OpenShift not present
#815
Comments
Merged
12 tasks
My initial assumption was wrong. This issue doesn't seem to be caused by upgrading to KubernetesClient but a recent refactor related to BuildService (#772), see https://github.com/eclipse/jkube/pull/772/files#r682814511. I confirmed this by doing a git bisect. Here are my logs:
|
rohanKanojia
added a commit
to rohanKanojia/jkube
that referenced
this issue
Aug 4, 2021
…ift not present Using OpenShiftClient to store result of `clusterAccess.createDefaultClient()` seems to cause ClassCastException when return value is of type DefaultKubernetesClient. Instead, Use a temporaty KubernetesClient variable for `clusterAccess.createDefaultClient()` and type cast it to OpenShiftClient in case it's adaptable to OpenShiftClient interface. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
12 tasks
rohanKanojia
added a commit
to rohanKanojia/jkube
that referenced
this issue
Aug 5, 2021
…ift not present Using OpenShiftClient to store result of `clusterAccess.createDefaultClient()` seems to cause ClassCastException when return value is of type DefaultKubernetesClient. Instead, Use a temporaty KubernetesClient variable for `clusterAccess.createDefaultClient()` and type cast it to OpenShiftClient in case it's adaptable to OpenShiftClient interface. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa
pushed a commit
that referenced
this issue
Aug 5, 2021
Using OpenShiftClient to store result of `clusterAccess.createDefaultClient()` seems to cause ClassCastException when return value is of type DefaultKubernetesClient. Instead, Use a temporaty KubernetesClient variable for `clusterAccess.createDefaultClient()` and type cast it to OpenShiftClient in case it's adaptable to OpenShiftClient interface. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Info
In recent release v1.4.0, I notice that when OpenShift is not present; OpenShift Maven Plugin build goal fails with a ClassCastException:
In v1.3.0, I used to get a correct message about OpenShift cluster not getting detected:
mvn -v
) :Kubernetes / Red Hat OpenShift setup and version :
If it's a bug, how to reproduce : Go to any quickstart and build in openshift profile with openshift not present
If it's a feature request, what is your use case :
Sample Reproducer Project : [GitHub Clone URL]
The text was updated successfully, but these errors were encountered: