-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
make INVOKER_NAME optional #2902
Conversation
@@ -60,7 +60,7 @@ object Invoker { | |||
invokerContainerDns -> "", | |||
invokerContainerNetwork -> null, | |||
invokerUseRunc -> "true") ++ | |||
Map(invokerName -> null) | |||
Map(invokerName -> "") |
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.
invokerName should be validated as non-empty below, same as redisHost (it will only be validated when the id arg is not present)
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 @tysonnorris.
done
LGTM |
@rabbah , @markusthoemmes , @dgrove-oss I'd like to merge this to fix the build on |
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.
Hmm does that work? If one doesn’t provid me an ID then the default is empty string which will the abort.
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.
Ok clarified on Slack. @tysonnorris had a useful comment perhaps worth adding here “if id arg
is provided, use it, and do NOT require INVOKER_NAME or REDIS_HOST configs; if id arg
is NOT provided, then DO require INVOKER_NAME AND REDIS_HOST configs”
* make INVOKER_NAME optional * abort on empty invoker name when redis host is specified
* make INVOKER_NAME optional * abort on empty invoker name when redis host is specified
* make INVOKER_NAME optional * abort on empty invoker name when redis host is specified
* make INVOKER_NAME optional * abort on empty invoker name when redis host is specified
* make INVOKER_NAME optional * abort on empty invoker name when redis host is specified
* make INVOKER_NAME optional * abort on empty invoker name when redis host is specified
This slipped in with the Redis changes and I don't think it's needed b/c the invoker already starts with an
id
.if
id arg
is provided, use it, and do NOT require INVOKER_NAME or REDIS_HOST configs; ifid arg
is NOT provided, then DO require INVOKER_NAME AND REDIS_HOST configsRelates to: #2872 and apache/openwhisk-devtools#62