Skip to content

Conversation

@ygalblum
Copy link
Contributor

Does this PR introduce a user-facing change?

Yes

Allow overriding the service name on all Quadlet unit types
Due to dependency enforcement, all referenced Quadlet files must exist even on dryrun 

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 30, 2024
@ygalblum ygalblum force-pushed the quadlet-override-service-name branch 3 times, most recently from 972e192 to cd5616f Compare July 31, 2024 14:32
@ygalblum ygalblum force-pushed the quadlet-override-service-name branch 3 times, most recently from 928964c to 22a2949 Compare August 4, 2024 12:58
@ygalblum ygalblum marked this pull request as ready for review August 4, 2024 13:56
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 4, 2024
@ygalblum ygalblum force-pushed the quadlet-override-service-name branch from 22a2949 to 5f9bc48 Compare August 5, 2024 04:12
@ygalblum
Copy link
Contributor Author

ygalblum commented Aug 5, 2024

@Luap99 this is the PR that completes the support for overriding the generated service name. In addition to the code changes, it required some adjustments to the tests in addition to some new tests

@rhatdan
Copy link
Member

rhatdan commented Aug 7, 2024

@ygalblum could you rebase and repush.

@ygalblum ygalblum force-pushed the quadlet-override-service-name branch from 5f9bc48 to ac87f27 Compare August 7, 2024 10:20
@ygalblum
Copy link
Contributor Author

ygalblum commented Aug 7, 2024

@rhatdan Done

Copy link
Member

Choose a reason for hiding this comment

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

One enhancement would be to add a function unitInfo.Filename() and clean this up.

service.Filename=unitInfo.Filename()

Since this is replicated everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@rhatdan rhatdan left a comment

Choose a reason for hiding this comment

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

LGTM
One minor change.

@ygalblum ygalblum force-pushed the quadlet-override-service-name branch from ac87f27 to dee40bb Compare August 7, 2024 11:31
Add support for the ServiceName key for all unit types
Extend the PodInfo struct into UnitInfo to consolidate all prepopulated data into a single map
Use the NodesInfo map instead of the resourceName
Update the UnitInfo in the convert function instead of returning it
No need to replace extension anymore just remove it
All e2e tests with dependencies on other Quadlet files moved to a separate section
Add the capability of overriding the service name in the test
Add e2e tests for the new functionality
Adjust integration tests
Update the MAN page

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
@ygalblum ygalblum force-pushed the quadlet-override-service-name branch from dee40bb to 795851e Compare August 7, 2024 14:50
@ygalblum
Copy link
Contributor Author

@containers/podman-maintainers PTAL

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 12, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, rhatdan, ygalblum

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 [Luap99,rhatdan,ygalblum]

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

@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Nov 11, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Nov 11, 2024
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. quadlet release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants