-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consolidate security options to use =
as separator.
#21232
Consolidate security options to use =
as separator.
#21232
Conversation
66251b9
to
e2f9e74
Compare
LGTM |
Design LGTM |
e2f9e74
to
f412c22
Compare
👍 thanks! |
Will need to search the docs to update the examples |
f412c22
to
377f82b
Compare
@thaJeztah I think I got all of them, but please double check. |
@calavera docs look good, possibly needed; bash completion: Do we need a deprecation warning? (do we plan to deprecate the old notation?) |
LGTM 🐼 |
agreed
we don't do any parsing client side, and we don't show other warnings like this in the client afaik, but I can add it if people want it. |
7a96715
to
0d55e0d
Compare
The SELinux label ones have multiple ":" in them.
I guess becomes
|
I guess becomes
Yes |
We do some parsing client side, as the seccomp config file is parsed client side. |
All other options we have use `=` as separator, labels, log configurations, graph configurations and so on. We should be consistent and use `=` for the security options too. Signed-off-by: David Calavera <david.calavera@gmail.com>
0d55e0d
to
cb9aeb0
Compare
LGTM |
Consolidate security options to use `=` as separator.
@@ -1788,17 +1788,17 @@ _docker_run() { | |||
;; | |||
--security-opt) |
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.
Sorry David, this change does not work: =
cannot be substituted for :
here because it is in COMP_WORDBREAKS
.
I will create a fix.
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.
note: to be accurate: :
us also in $COMP_WORDBREAKS
but there is speacial treatment for it in
_get_comp_words_by_ref -n : cur prev words cword
Fix created: #21584
All other options we have use
=
as separator, labels,log configurations, graph configurations and so on.
We should be consistent and use
=
for the securityoptions too.
I change the daemon parsing to accept
=
. It stillsupports
:
but it logs a warning when this separatoris used.
Let's decide if we want to do this and I'll complete it
with tests and documentation changes.
Signed-off-by: David Calavera david.calavera@gmail.com