-
Notifications
You must be signed in to change notification settings - Fork 9
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
Consider a different name than defined
for customizations?
#4
Comments
I agree I don't particularly like The second variant I'm not too fond of, sometimes customizations will need to create (multiple) objects in the tree and it would lead to having to put all of that in the customization value. Take for example a file customization that needs to create the file with its contents, chmod, and chown it, and perhaps sets extended attributes :) |
I'm having a hard time understanding exactly how this works by reading the spec and the discussion, even though I came in thinking I did. From the spec: Lines 169 to 172 in e57456a
Ok so far
otk.customization.name:
default:
- type: org.osbuild.stage
options: none
defined:
- type: org.osbuild.stage
options: ${this.data} # it's not going to be `this`
- type: org.osbuild.stage
options: ${this.data} # it's not going to be `this` would an inactive customization mean that the stage isn't added, or that it's added without options (because of the default)?
Does replacing the block multiple times mean that we get multiple stages, one for each customization, or that the same block is replaced each time and only the last one essentially remains? For the actual topic at hand: (I didn't mean to nitpick as much as I did, just felt that it was worth bringing up the confusion I had so we can make things clearer if possible) |
This type of nitpicking is very necessary.
Active means the customization is passed on the command line. Inactive means it wasn't.
The default case would execute for an inactive customization. Hence only a single stage (with options none) would be added.
It means the The example isn't the best anymore, there's now a 'real-life' usecase where repeating doesn't make sense: https://github.com/osbuild/otk/blob/main/example/fedora/osbuild/pipeline/tree.yaml#L22 |
Agreed. I like that one the most as well. Does the Note that if there is no |
I think so, yeah. That's very clear.
Makes sense! |
There's now a PR open that renames |
Merged in #26. |
I am struggling a bit with the name
defined
in customizations,I was playing with various ideas, here are some for your consideration:
(obvious only one of the last couple)
or mabe just:
and we just replace
otk.customization.hostname
with it's value if it's not the default?The text was updated successfully, but these errors were encountered: