-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat: Add label_file support to service #713
Changes from all commits
7a2f9a9
e608b09
b378ecd
457e8f0
88f1ac2
c697f13
88117ef
eeda727
9831427
381733b
ccf14e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# passed through | ||
FOO=foo_from_label_file | ||
LABEL.WITH.DOT=ok | ||
LABEL_WITH_UNDERSCORE=ok | ||
|
||
# overridden in example2.label | ||
BAR=bar_from_label_file | ||
|
||
# overridden in full-example.yml | ||
BAZ=baz_from_label_file |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
BAR=bar_from_label_file_2 | ||
|
||
# overridden in configDetails.Labels | ||
QUX=quz_from_label_file_2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -240,6 +240,7 @@ | |
"domainname": {"type": "string"}, | ||
"entrypoint": {"$ref": "#/definitions/command"}, | ||
"env_file": {"$ref": "#/definitions/env_file"}, | ||
"label_file": {"$ref": "#/definitions/label_file"}, | ||
"environment": {"$ref": "#/definitions/list_or_dict"}, | ||
|
||
"expose": { | ||
|
@@ -884,6 +885,16 @@ | |
] | ||
}, | ||
|
||
"label_file": { | ||
"oneOf": [ | ||
{"type": "string"}, | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds to me this is a premature feature to add support for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ndeloof agree, fixed |
||
"type": "array", | ||
"items": {"type": "string"} | ||
} | ||
] | ||
}, | ||
|
||
"string_or_list": { | ||
"oneOf": [ | ||
{"type": "string"}, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
FYI this huge test we inherited from legacy compose parser in docker/cli.
As it is painful to maintain, we prefer to have individual test checking specific attribute is well supported (which you also provided 🥳)
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.
should I revert these changes or keep them?