Skip to content
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

Merged
merged 9 commits into from
Jun 14, 2023
Merged

Conversation

benhoyt
Copy link
Collaborator

@benhoyt benhoyt commented Jun 12, 2023

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.

benhoyt added 3 commits June 12, 2023 17:36
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.
Copy link
Member

@jnsgruk jnsgruk left a 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 :)

@benhoyt
Copy link
Collaborator Author

benhoyt commented Jun 12, 2023

@jnsgruk Thanks for the review -- updates made, ready for re-review.

@benhoyt benhoyt requested a review from jnsgruk June 12, 2023 23:55
benhoyt added 3 commits June 14, 2023 08:48
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
@jameinel jameinel changed the title Remove jargon from and simply README Remove jargon from and simplify README Jun 13, 2023
Copy link
Member

@jnsgruk jnsgruk left a 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

@benhoyt benhoyt merged commit 3765013 into canonical:main Jun 14, 2023
@benhoyt benhoyt deleted the readme-update branch June 14, 2023 23:32
@benhoyt
Copy link
Collaborator Author

benhoyt commented Jun 14, 2023

Merged. Note posted on Charmhub Mattermost > Charm Development, and also at https://discourse.charmhub.io/t/terminology-tweak-operator-framework-ops/10908

benhoyt added a commit to benhoyt/pebble that referenced this pull request Jun 19, 2023
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
niemeyer pushed a commit to canonical/pebble that referenced this pull request Jun 19, 2023
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants