-
Notifications
You must be signed in to change notification settings - Fork 123
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
Remove jargon from and simplify README #950
Conversation
Remove a lot of the "operator" and K8s jargon from the top of our README. I feel fairly strongly this isn't the place to sell how great Juju, K8s operators, and model-driven development is -- we should do that on our landing page and/or docs, not in the ops README. Also simplify and update some of the terminology (hopefully consistent with our updated terminology doc, though I've used the "charmed" prefix as there's more than one "Operator Framework"). The first part of the doc is copied to ops/__init__.py for consistency. That appears at the top of our API reference at https://ops.readthedocs.io/ Move the note about depencies to HACKING.md where I think it belongs.
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.
A light first pass :)
@jnsgruk Thanks for the review -- updates made, ready for re-review. |
Also replace "operator" with "admin" in a few places where it means the human operator, as "operator" is ambiguous. Also have separate TOC entries for each module in docs
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.
Nice, thanks. Let's also make sure we include a note on the Charmhub Discourse and Charmhub Mattermost to make sure people don't get too confused about the change from Operator Framework -> ops
Merged. Note posted on Charmhub Mattermost > Charm Development, and also at https://discourse.charmhub.io/t/terminology-tweak-operator-framework-ops/10908 |
This goes for services, exec, and health checks of type "exec". This also fixes a long-standing bug in the user/group parameters for "exec" health checks not working at all. This was due to not setting cmd.SysProcAttr, so the "cmd.SysProcAttr.Credential =" line would panic with a nil pointer error. Also a drive-by fix to the README to update to the new terminology. See also canonical/operator#950 Fixes canonical#166
When user and group (or user ID and group ID) options are given when running services and they're equal to the current user and group, avoid setting os/exec's syscall.Credential Uid and Gid, because they require root. In the case when they're explicitly asking to run the command as the current user, we can just run it directly, without requiring root. This goes for services, exec (one-shot commands), and health checks of type "exec". This PR also fixes a long-standing bug in the user/group options for "exec" health checks not working at all. This was due to not setting cmd.SysProcAttr, so the cmd.SysProcAttr.Credential = ... line would panic with a nil pointer error. Also a drive-by fix to the README to update to the new terminology. See also canonical/operator#950. Fixes #166.
View rendered version updated README.md here.
Remove a lot of the "operator" and K8s jargon from the top of our README. I feel fairly strongly this isn't the place to sell how great Juju, K8s operators, and model-driven development are -- we should do that on our landing page and/or docs, not in the ops README. Charmers shouldn't normally be landing here, and if they do, I think we should give them succinct, developer-oriented documentation.
Also simplify and update some of the terminology to be consistent with our updated Juju Terminology doc.
The first part of the README is copied to
ops/__init__.py
for consistency. That will appear at the top of our API reference at https://ops.readthedocs.io/Move the note about dependencies to HACKING.md where I think it belongs.