-
Notifications
You must be signed in to change notification settings - Fork 519
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
Spring Boot Dekorate Maven Quickstart throws NPE on k8s:apply
#1113
Comments
rohanKanojia
added a commit
to rohanKanojia/jkube
that referenced
this issue
Nov 10, 2021
…late` should also handle YAML manifests with multiple docs + Added logic in `ResourceUtil.deserializeKubernetesListOrTemplate()` method to handle YAML manifests which multiple documents. This was causing deserialization to fail when JKube was trying to deserialize manifests generated by Dekorate Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia
added a commit
to rohanKanojia/jkube
that referenced
this issue
Nov 11, 2021
…late` should also handle YAML manifests with multiple docs + Added logic in `ResourceUtil.deserializeKubernetesListOrTemplate()` method to handle YAML manifests which multiple documents. This was causing deserialization to fail when JKube was trying to deserialize manifests generated by Dekorate Signed-off-by: Rohan Kumar <rohaan@redhat.com>
12 tasks
14 tasks
manusa
pushed a commit
to rohanKanojia/jkube
that referenced
this issue
Nov 18, 2021
…late` should also handle YAML manifests with multiple docs + Added logic in `ResourceUtil.deserializeKubernetesListOrTemplate()` method to handle YAML manifests which multiple documents. This was causing deserialization to fail when JKube was trying to deserialize manifests generated by Dekorate Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa
pushed a commit
to manusa/jkube
that referenced
this issue
Nov 18, 2021
…late` should also handle YAML manifests with multiple docs + Added logic in `ResourceUtil.deserializeKubernetesListOrTemplate()` method to handle YAML manifests which multiple documents. This was causing deserialization to fail when JKube was trying to deserialize manifests generated by Dekorate Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa
pushed a commit
that referenced
this issue
Nov 23, 2021
…also handle YAML manifests with multiple docs + Added logic in `ResourceUtil.deserializeKubernetesListOrTemplate()` method to handle YAML manifests which multiple documents. This was causing deserialization to fail when JKube was trying to deserialize manifests generated by Dekorate 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
When I'm running
k8s:apply
goal to apply manifests generated by dekorate to Kubernetes Cluster. I'm getting NullPointerException:NPE seems to be pointing to this line (
items
beingnull
):https://github.com/eclipse/jkube/blob/2a328258896d2079a3f3d8059c40b7cb141099da/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/ResourceUtil.java#L97
This seems to be affecting all versions since v1.1.0. Quickstart is working for me on v1.1.0, but fails on all later versions. The problem seems to be coming from recent changes in ResourceUtil class that it can no longer handle multiple document manifests which are added by Dekorate:
It only seems to be accepting this format:
Info
mvn -v
) :Kubernetes / Red Hat OpenShift setup and version : N/A
If it's a bug, how to reproduce : Go to quickstarts/maven/spring-boot-dekorate and run
mvn clean install k8s:apply -Pkubernetes
you'll get NPEThe text was updated successfully, but these errors were encountered: