Skip to content

Conversation

@bergerhoffer
Copy link
Contributor

@bergerhoffer bergerhoffer commented Mar 27, 2025

Version(s):
4.19

Issue:
https://issues.redhat.com/browse/OSDOCS-13254

Link to docs preview:
https://91212--ocpdocs-pr.netlify.app/openshift-enterprise/latest/tutorials/dev-app-web-console

QE review:

  • QE has approved this change.

Additional information:

Will need #90215 to merge first before can make changes to the web console assembly. Done

Note to reviewer: Some of the wording updates match what was already merged for the CLI version of the tutorial in #90215.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 27, 2025
@bergerhoffer bergerhoffer added this to the Planned for 4.19 GA milestone Mar 27, 2025
@ocpdocs-previewbot
Copy link

ocpdocs-previewbot commented Mar 27, 2025

@bergerhoffer bergerhoffer force-pushed the OSDOCS-13254-web-tutorial branch from f32a9f9 to 0d1f376 Compare April 2, 2025 18:11
@bergerhoffer bergerhoffer force-pushed the OSDOCS-13254-web-tutorial branch 3 times, most recently from cbf51bf to 51d6d50 Compare April 3, 2025 17:19
@bergerhoffer bergerhoffer force-pushed the OSDOCS-13254-web-tutorial branch from 51d6d50 to 37c7681 Compare April 3, 2025 18:23
@openshift-ci openshift-ci bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 3, 2025
@bergerhoffer bergerhoffer force-pushed the OSDOCS-13254-web-tutorial branch 2 times, most recently from cca5f2b to 190df96 Compare April 3, 2025 19:19
* You are logged in to the {product-title} web console.
* You are in the *Developer* perspective.
* You have the appropriate roles and permissions in a project to create applications and other workloads in {product-title}.
// TODO: This requirement isn't in the CLI version. Is it necessary?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexonOliveiraRH I think we can remove the above line ("You have the appropriate roles..."). It's not in the CLI version. wdyt?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexonOliveiraRH I think we can remove the above line ("You have the appropriate roles..."). It's not in the CLI version. wdyt?

@bergerhoffer although this is not CLI, permissions are bound across all clusters resources, independently of which platform you're using, i.e. CLI or web console, the user still needs to guarantee the proper permissions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexonOliveiraRH What permissions should we say that they need to have then? (And if we add it here, we should also add that to the CLI version)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexonOliveiraRH What permissions should we say that they need to have then? (And if we add it here, we should also add that to the CLI version)

@bergerhoffer the minimum permission a user should have within a namespace scope to be able to deploy applications like this is the edit one, or the cluster admin could give the user also the admin permission within the namespace context only, which is a broader permission. More on this here: https://91212--ocpdocs-pr.netlify.app/openshift-enterprise/latest/authentication/using-rbac#default-roles_using-rbac

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, this still doesn't seem to check out to me, because if they are the ones that created the project, then shouldn't they automatically get whatever permissions needed to work in that project?

The only thing I could see saying here is about whether someone has access to the cluster, but doesn't have permission to create a project (if there is such a role like that). wdyt?

Copy link

@AlexonOliveiraRH AlexonOliveiraRH Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, this still doesn't seem to check out to me, because if they are the ones that created the project, then shouldn't they automatically get whatever permissions needed to work in that project?

The only thing I could see saying here is about whether someone has access to the cluster, but doesn't have permission to create a project (if there is such a role like that). wdyt?

@bergerhoffer for example, the same user could get only a view permission, so this user would be able to navigate into the project, see things, but wouldn't be able to create nothing, neither change anything. That's why the cluster admin should grant this user at least edit permission (or admin in the namespace scope only) to create the project and do the rest of the tutorial. Also, the cluster admin could tweak RoleBindings to allow an user only to create a project, but not creating anything else inside it, but this is not a default behavior/permission.

@AlexonOliveiraRH
Copy link

@bergerhoffer well done! Everything worked like a charm. With the exception of some minor tweaking you may do, LGTM to move forward.

@bergerhoffer bergerhoffer force-pushed the OSDOCS-13254-web-tutorial branch from 190df96 to 71e0935 Compare April 7, 2025 18:08
@bergerhoffer
Copy link
Contributor Author

/label peer-review-needed

@openshift-ci openshift-ci bot added the peer-review-needed Signifies that the peer review team needs to review this PR label Apr 7, 2025
@bergerhoffer
Copy link
Contributor Author

Note to peer reviewer: FYI that a lot of the wording updates (like procedure intros, etc.) match what was already merged for the CLI version of the tutorial in #90215.

@kcarmichael08 kcarmichael08 added peer-review-in-progress Signifies that the peer review team is reviewing this PR and removed peer-review-needed Signifies that the peer review team needs to review this PR labels Apr 7, 2025
Copy link
Contributor

@kcarmichael08 kcarmichael08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Had a few suggestions/questions but nothing big.

@kcarmichael08 kcarmichael08 added the peer-review-done Signifies that the peer review team has reviewed this PR label Apr 7, 2025
@kcarmichael08 kcarmichael08 removed the peer-review-in-progress Signifies that the peer review team is reviewing this PR label Apr 7, 2025
@bergerhoffer bergerhoffer force-pushed the OSDOCS-13254-web-tutorial branch from 71e0935 to edd229d Compare April 8, 2025 13:18
@bergerhoffer
Copy link
Contributor Author

@AlexonOliveiraRH This is ready for another review.

If it helps, here's the diff of what I changed since the last time you reviewed: https://github.com/openshift/openshift-docs/compare/71e0935bd6792e1fca1d06db0995474cebe4d99e..edd229dc788dea603795722c4fc2b4a6f7b3c7ed

The main updates I'd want you to check are

  1. The rewording of the secrets paragraph (the only open comment from above)
  2. I ended up adding something to the tutorial prereqs about the necessary permissions needed to create projects and add to them. Please check that wording and see if that makes sense. I mentioned cluster-admin and edit roles as examples of what they'd need.

@AlexonOliveiraRH
Copy link

@AlexonOliveiraRH This is ready for another review.

If it helps, here's the diff of what I changed since the last time you reviewed: https://github.com/openshift/openshift-docs/compare/71e0935bd6792e1fca1d06db0995474cebe4d99e..edd229dc788dea603795722c4fc2b4a6f7b3c7ed

The main updates I'd want you to check are

  1. The rewording of the secrets paragraph (the only open comment from above)
  2. I ended up adding something to the tutorial prereqs about the necessary permissions needed to create projects and add to them. Please check that wording and see if that makes sense. I mentioned cluster-admin and edit roles as examples of what they'd need.

@bergerhoffer these changes LGTM, thank you. The only it needs to be fixed is exactly the permission part. Please, if you could change from cluster-admin to only admin and explain that this only into the namespace scope, because cluster-admin is a wide permission, cluster scope.

@bergerhoffer bergerhoffer force-pushed the OSDOCS-13254-web-tutorial branch 2 times, most recently from c4f5c82 to 1d43fbc Compare April 8, 2025 17:56
@bergerhoffer
Copy link
Contributor Author

@AlexonOliveiraRH Okay here are my latest updates after our last discussions in Slack. I also went through and tested using Developer Sandbox, and found a few more little tweaks to make.

  • Added to skip creating a project if using Developer Sandbox
  • Noted places where the project name might be different if they're using Developer Sandbox or another project name
  • Mentioned the roles required. I removed 'edit' as an option for the project-level perms, because they need at least 'admin' to grant the view permissions
  • The secrets wording we talked about
  • Found a few typos where parksmap should have been nationalparks, and made a few other small tweaks
  • Mentioned that the browser may ask for their location, just so they're not surprised, so they know what it does.

Here's the diff if it helps: https://github.com/openshift/openshift-docs/compare/edd229dc788dea603795722c4fc2b4a6f7b3c7ed..1d43fbcf05161eeb56fbbf0c0c2377e6a9f89b6d

Let me know how these updates look, thanks!

@bergerhoffer bergerhoffer force-pushed the OSDOCS-13254-web-tutorial branch from 1d43fbc to 9584c07 Compare April 8, 2025 18:37
@AlexonOliveiraRH
Copy link

AlexonOliveiraRH commented Apr 9, 2025

@AlexonOliveiraRH Okay here are my latest updates after our last discussions in Slack. I also went through and tested using Developer Sandbox, and found a few more little tweaks to make.

Nice.

  • Added to skip creating a project if using Developer Sandbox

Good catch.

  • Noted places where the project name might be different if they're using Developer Sandbox or another project name

Good catch too.

  • Mentioned the roles required. I removed 'edit' as an option for the project-level perms, because they need at least 'admin' to grant the view permissions

Sounds good to me.

  • The secrets wording we talked about

Perfect.

  • Found a few typos where parksmap should have been nationalparks, and made a few other small tweaks

Also a good catch.

  • Mentioned that the browser may ask for their location, just so they're not surprised, so they know what it does.

Nice touch.

Here's the diff if it helps: https://github.com/openshift/openshift-docs/compare/edd229dc788dea603795722c4fc2b4a6f7b3c7ed..1d43fbcf05161eeb56fbbf0c0c2377e6a9f89b6d

Let me know how these updates look, thanks!

@bergerhoffer I just finished my review and kudos to you, ma'am. It looks very good to me. :) I think you addressed all the main points we discussed, specially the recent ones.

@bergerhoffer
Copy link
Contributor Author

@yapei Here is the PR to update the web console tutorial. Can you PTAL when you get a chance?

Preview: https://91212--ocpdocs-pr.netlify.app/openshift-enterprise/latest/tutorials/dev-app-web-console

Similar changes were made to the CLI version of the tutorial in #90215, which has been approved/merged. This PR also makes a few further tweaks to the CLI version that we made after working on this web console version. Let me know if you have any questions, thanks!

@yapei
Copy link

yapei commented Apr 10, 2025

@bergerhoffer Changes look perfect from QE's point of view, some tiny update requests above, PTAL

@bergerhoffer bergerhoffer force-pushed the OSDOCS-13254-web-tutorial branch from 9584c07 to c3874ae Compare April 10, 2025 12:29
@openshift-ci
Copy link

openshift-ci bot commented Apr 10, 2025

@bergerhoffer: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@bergerhoffer
Copy link
Contributor Author

@yapei I've updated the two items you pointed out, if you can take another look please. Thanks!

@yapei
Copy link

yapei commented Apr 11, 2025

Thanks @bergerhoffer LGTM

@bergerhoffer bergerhoffer merged commit 666dad7 into openshift:main Apr 11, 2025
2 checks passed
@bergerhoffer
Copy link
Contributor Author

/cherrypick enterprise-4.19

@openshift-cherrypick-robot

@bergerhoffer: new pull request created: #92099

Details

In response to this:

/cherrypick enterprise-4.19

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch/enterprise-4.19 peer-review-done Signifies that the peer review team has reviewed this PR size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants