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

Switch all rootful to rootfull #13964

Merged
merged 1 commit into from
Apr 22, 2022
Merged

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Apr 21, 2022

We are inconsistent on the name, we should stick with rootfull.

[NO NEW TESTS NEEDED] Existing tests should handle this and no tests for
machines exists yet.

Signed-off-by: Daniel J Walsh [email protected]

We are inconsistent on the name, we should stick with rootfull.

[NO NEW TESTS NEEDED] Existing tests should handle this and no tests for
machines exists yet.

Signed-off-by: Daniel J Walsh <[email protected]>
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 21, 2022
@TomSweeneyRedHat
Copy link
Member

Will this cause any kind of unhappiness or lost expectations for customers if they upgrade from 4.0 to 4.1? Especially RHEL?

@TomSweeneyRedHat
Copy link
Member

I'll send Gabriella a heads up for the RHEL doc side of things.

flags.BoolVar(&initOpts.Rootful, rootfulFlagName, false, "Whether this machine should prefer rootful container execution")
rootfullFlagName := "rootfull"
flags.BoolVar(&initOpts.Rootfull, rootfullFlagName, false, "Whether this machine should prefer rootfull container execution")
flags.SetNormalizeFunc(aliasFlags)
Copy link
Member

Choose a reason for hiding this comment

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

Should we still support rootful? Similar to how we're still supporting the --pull-always option under the covers?

Copy link
Member Author

Choose a reason for hiding this comment

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

We do, that is what the SetNormalizeFunc does, It basically aliases rootful->rootfull, so if people built scripts with the old option, it will continue to work.

@rhatdan
Copy link
Member Author

rhatdan commented Apr 22, 2022

Since rootful->rootfull alias exists this should not cause any breakage.

@rhatdan
Copy link
Member Author

rhatdan commented Apr 22, 2022

@containers/podman-maintainers PTAL

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 22, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 22, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, giuseppe, rhatdan

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:
  • OWNERS [flouthoc,giuseppe,rhatdan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 0d6af14 into containers:main Apr 22, 2022
@ashley-cui
Copy link
Member

ashley-cui commented Apr 22, 2022

@rhatdan @TomSweeneyRedHat

I'd disagree with this change, as in English the suffix is -ful: https://www.oxfordlearnersdictionaries.com/us/definition/english/ful

Using rootful over rootfull would match the pattern with other adjectives in the English language such as:

  • sorrowful
  • awful
  • painful
  • faithful

The list of words ending in -ful also is far longer than the list of words ending in -full.

Another option would be to drop the suffix entirely; "root connections", "root users", "root storage" seem to make as much sense as "rootful"

@rhatdan
Copy link
Member Author

rhatdan commented Apr 22, 2022

Sure both are used, but the default for most of the code was to use rootfull and most of the documentation, blogs etc. The goal is to have them consistent everywhere.

rootfull
rootless

Looks better to me visually.

@ashley-cui
Copy link
Member

ashley-cui commented Apr 22, 2022

@rhatdan This also breaks existing podman machines, since we're writing "rootful" to a config file. I think we need to at least keep this.

@mheon
Copy link
Member

mheon commented Apr 22, 2022

Let's try and get this wrapped up before RC1. Which is now prooobably on monday?

@rhatdan
Copy link
Member Author

rhatdan commented Apr 22, 2022

@ashley-cui --rootful is still supported. So it will not break anything
Cobra added an alias where --rootful and --rootfull work the same.

@Luap99
Copy link
Member

Luap99 commented Apr 25, 2022

I think the problem is that the option is written to the config file not the cli option. So we break old installs because the field is no longer correctly unmarshalled!

@ashley-cui Please open a PR to fix this. We should not break machine users.

@ashley-cui
Copy link
Member

Yes, what @Luap99 said is correct, I've opened #13995 to revert this commit.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants