-
Notifications
You must be signed in to change notification settings - Fork 89
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
Upgrade JHipster Online Stack #571
Conversation
Signed-off-by: Maximiliano Pizarro <[email protected]>
Hi @maximilianoPizarro. Thanks for your PR. I'm waiting for a devfile member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: Maximiliano Pizarro <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maximilianoPizarro Few things to change in your latest changes.
Signed-off-by: Maximiliano Pizarro <[email protected]>
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Waiting on @devfile/che-team's review.
Signed-off-by: Maximiliano Pizarro <[email protected]>
Signed-off-by: Maximiliano Pizarro <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Maximiliano Pizarro <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm after all checks are passing. I feel this should be the case after the latest commit.
FYI I've opened devfile/api#1679 to fix the issue with odo 2 check and the support of latest schemaversion.
@michael-valdron I think you need to approve as you have requested changes in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maximilianoPizarro I am receiving the following errors when testing with odo v3.16.1
:
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "/v1, Resource=secrets", GroupVersionKind: "/v1, Kind=Secret"
Name: "mariadb", Namespace: "jhipster-online"
from server for: "src/main/kubernetes/mysql.yaml": secrets "mariadb" is forbidden: User "system:serviceaccount:jhipster-online:default" cannot get resource "secrets" in API group "" in the namespace "jhipster-online"
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "apps/v1, Resource=deployments", GroupVersionKind: "apps/v1, Kind=Deployment"
Name: "mariadb", Namespace: "jhipster-online"
from server for: "src/main/kubernetes/mysql.yaml": deployments.apps "mariadb" is forbidden: User "system:serviceaccount:jhipster-online:default" cannot get resource "deployments" in API group "apps" in the namespace "jhipster-online"
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "/v1, Resource=services", GroupVersionKind: "/v1, Kind=Service"
Name: "mariadb", Namespace: "jhipster-online"
from server for: "src/main/kubernetes/mysql.yaml": services "mariadb" is forbidden: User "system:serviceaccount:jhipster-online:default" cannot get resource "services" in API group "" in the namespace "jhipster-online"
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "/v1, Resource=persistentvolumeclaims", GroupVersionKind: "/v1, Kind=PersistentVolumeClaim"
Name: "mariadb-data", Namespace: "jhipster-online"
from server for: "src/main/kubernetes/mysql.yaml": persistentvolumeclaims "mariadb-data" is forbidden: User "system:serviceaccount:jhipster-online:default" cannot get resource "persistentvolumeclaims" in API group "" in the namespace "jhipster-online"
For a sanity check, which version OCP version did you test this with?
Hi @michael-valdron! I testing with OCP 4.17.5 provided by https://workspaces.openshift.com Red Hat Developer Sandbox. I share the list of resources will generate when run the task OpenShift apply MariaDB Instance.
secret/mariadb created Note that the account system:serviceaccount:jhipster-online:default does not have GET permissions on the cluster due to errors. In the case of Dev Spaces, the environment use to sa for exec kube command. I'll add something else that I see. In the logs it can be seen that the namespace created by odo has this name oalujdes when applying the manifests it does so on the default namespace, for this reason it does not have permissions to create the object. This scenario is not replicated in OpenShift since when starting the environment it is positioned on the namespace with oc project "namespace". Would it be possible to add the --namespace oalujdes argument outside of devfile? Or add a service account so that odo can create resources in the default namespace? Since it is an ephemeral test as I understand it. |
Signed-off-by: Maximiliano Pizarro <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This devfile and the project devfile content should match for this version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should match schema version of the project devfile
Signed-off-by: Maximiliano Pizarro <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like odo v3 is skipping this stack now with the latest changes: https://github.com/devfile/registry/actions/runs/13079727810/job/36500644377
Just #571 (comment) left at this time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maximilianoPizarro In addition to my feedback to get both tools compatible, I noticed an unrelated error in DevSandbox when trying to access the frontend endpoint. I tried this with both my change to the workspace image and the current sample available on DevSandbox:
I may be executing this wrong, so to clarify how I launched in DevSandbox, I follow the following steps:
- Ran
OpenShift apply MariaDB Instance (OpenShift cluster)
task - Ran
Start JHipster Online
task - Ran
Start Frontend
task
Let me know if this is incorrect or I missed a step to get this working.
Hi @michael-valdron! I added the steps are with some visibility description:
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maximilianoPizarro While I retest with DevSandbox using the steps you provided, could you republish quay.io/devfile/jhipster-online
image with the Dockerfile changes done? This would also mean an update to the referenced manifest on both versions of the stack again.
…ions Signed-off-by: Maximiliano Pizarro <[email protected]>
@michael-valdron ready the changes! For the moment I tagged the images with 2.33.0.1 and 2.33.1.0 name and update the source repo. When you finished the test I will update the tags name without sufix .1 and .0 so that it doesn't break in production 2.33.0 at this time. I test the changes clicked on Open DevSpaces button: I was generate an spring boot app with success: You need configure git provider, in the case of GitHub provider you need create new oauth App. Link to section https://github.com/settings/developers Look at the Git Configuration when start JHipster Online with preset client_id and client_secret. See and complete this values from application-dev.yml file. I look forward to any comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should match schema version of the project devfile
Signed-off-by: Maximiliano Pizarro <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm once testing completes successfully ✔️
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ibuziuk, Jdubrick, maximilianoPizarro, michael-valdron, thepetk The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description of Changes
Added new devfile 2.33.1 with the next updates:
Added Blueprints:
Upgrade jhipster udi image.
Example Try with Quarkus Generator:
Modify cmd key jhipster by jhipster-quarkus from application section:
Modify url-pipeline key by url-pipeline quarkus example:
Example Repo Output with Spring Boot Generator:
Example Repo Output with Quarkus Generator
Example Repo Output with Micronaut Generator
Example Repo Output with Quarkus Generator
I look forward to hearing your comments.
Thanks in advance Team.