-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Quadlet - do not look for line continuation in comment lines #21556
Merged
openshift-merge-bot
merged 1 commit into
containers:main
from
ygalblum:quadlet-comment-line
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## assert-podman-final-args localhost/imagename:latest | ||
## assert-podman-args --publish 9091:9091 | ||
## assert-podman-args "--name=greatName" | ||
|
||
[Unit] | ||
Wants=network-online.target | ||
After=network-online.target | ||
|
||
# -e HOST_WHITELIST= `#optional` \ | ||
|
||
[Container] | ||
# Image=localhost/otherimagename:latest | ||
Image=localhost/imagename:latest | ||
ContainerName=greatName | ||
# HostName=my-hostname | ||
Label=io.containers.autoupdate=registry | ||
Environment=PUID=1000 PGID=100 SEED_RATIO=1.3 TZ=Europe/Prague | ||
Volume=./.config:/config | ||
Volume=./downloads:/downloads | ||
# -v /path/to/watch/folder:/watch \ | ||
PublishPort=9091:9091 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't know much about quadlet, so this may be a stupid question: why is this not:
Is there metadata in comments? Special handling of some sort? It makes me super uncomfortable to see in-loop handling of comments instead of just immediate discard.
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.
Good point. In its current behavior, Quadlet copies the comments from the input file into the generated
.service
file. For this reason it handles such lines and does not skip them.Since I didn't want to change the behavior, I just made it disregard any possible line continuation character in comments
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.
The passing on of comments is nice, because they will then end up in the generated service file which can sometimes be shown by systemd.