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

Use commands for container push #3023

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bangelic
Copy link
Contributor

Containers are able to be pushed to Satellite's
container registry.
This command for pushing containers was needed to show the user how to
do so.

Please cherry-pick my commits into:

  • Foreman 3.10/Katello 4.12
  • Foreman 3.9/Katello 4.11 (Satellite 6.15; orcharhino 6.8)
  • Foreman 3.8/Katello 4.10
  • Foreman 3.7/Katello 4.9 (Satellite 6.14)
  • Foreman 3.6/Katello 4.8
  • Foreman 3.5/Katello 4.7 (Satellite 6.13; orcharhino 6.6/6.7)
  • Foreman 3.4/Katello 4.6 (EL8 only)
  • Foreman 3.3/Katello 4.5 on EL7 & EL8 (Satellite 6.12 on EL8 only; orcharhino 6.4/6.5 on EL8 only)
  • We do not accept PRs for Foreman older than 3.3.

Copy link

github-actions bot commented May 15, 2024

Copy link
Contributor

@asteflova asteflova left a comment

Choose a reason for hiding this comment

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

First pass at a review :) I'm making a few suggestions that would help integrate the new additions more organically with the existing content of the module you're updating. Let me know if I'm misinterpreting something.

@Lennonka Lennonka added Waiting on contributor Requires an action from the author and removed Not yet reviewed labels May 20, 2024
@bangelic bangelic force-pushed the bangelic-SAT-18579-Document-Container-Push-Workflow branch from a397e98 to 790cdb5 Compare May 22, 2024 20:53
@pr-processor pr-processor bot added Needs re-review and removed Waiting on contributor Requires an action from the author labels May 22, 2024
Copy link
Contributor

@asteflova asteflova left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @bangelic, the changes you've made so far made it a lot easier for me to understand the context of your addition more clearly.

In this round of feedback, I'm offering mostly specific suggestions, but I also have a couple of open questions in places where I had trouble understanding what was being described.

guides/common/modules/proc_using-container-registries.adoc Outdated Show resolved Hide resolved
guides/common/modules/proc_using-container-registries.adoc Outdated Show resolved Hide resolved
guides/common/modules/proc_using-container-registries.adoc Outdated Show resolved Hide resolved
guides/common/modules/proc_using-container-registries.adoc Outdated Show resolved Hide resolved
guides/common/modules/proc_using-container-registries.adoc Outdated Show resolved Hide resolved
guides/common/modules/proc_using-container-registries.adoc Outdated Show resolved Hide resolved
* Content can only be pushed to the {Project} itself.
* If pushed content needs to be on {SmartProxies} as well, use {SmartProxy} syncing.
* Podman requires that all characters in the pushed container name contain only lowercase characters.
* To push content to an organization or product, a user must be able to create repositories.
Copy link
Contributor

Choose a reason for hiding this comment

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

I've seen information about user permissions included under a .Prerequisite heading in other modules. Can you create a heading like that and move this line there?

Also, how do I know that my user is able to create repositories? Are we talking about Foreman roles/permissions? Which ones?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ianballou Does a user know if they have permissions to create repositories? Specific role or permissions needed? I am pushing a commit to say that a user must have permissions to create repositories in order to push content to an organization or product.

guides/common/modules/proc_using-container-registries.adoc Outdated Show resolved Hide resolved
* A repository in Katello is created once the content is pushed.
* If the organization or product does not exist, Katello sends an error telling the user to ensure the proper entities are created first.
* Subsequent pushes to the same repository updates the contents of that repository.
* Content is pulled as soon as it is pushed.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is curious. The procedure mentions pulling container images manually. Does this mean that when you push a container image, that image gets automatically pulled afterwards?

I don't know what to do about this sentence, but I felt the need to mention that it confused me in the context of the whole module 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ianballou Any chance you can provide some clarity here?

Writing manifest to image destination
----

.Limitations on container registries
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move this subheading for it to be placed somewhere closer to the beginning of the module? I don't think the information here will be relevant after .Procedure, after users have run the command(s).

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, feel free to reevaluate whether including the limitations as bullet points still works if/after you implement my suggestions. It's quite possible that after the edits, regular paragraphs will make more sense.

@Lennonka Lennonka added Waiting on contributor Requires an action from the author and removed Needs re-review labels May 24, 2024
Containers are able to be pushed to Satellite's
container registry.
This command for pushing containers was needed to show
the user how to
do so.
Moved Limitation section. Added attribute for foreman
example. Removed
bullet points for continuing sentences. Addressed some
style issues.
@bangelic bangelic force-pushed the bangelic-SAT-18579-Document-Container-Push-Workflow branch from 790cdb5 to b9dc10d Compare May 31, 2024 19:54
@pr-processor pr-processor bot added Needs re-review and removed Waiting on contributor Requires an action from the author labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants