Skip to content
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

Merged
merged 2 commits into from
Oct 26, 2017
Merged

Conversation

ddragosd
Copy link
Contributor

@ddragosd ddragosd commented Oct 25, 2017

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; if id arg is NOT provided, then DO require INVOKER_NAME AND REDIS_HOST configs

Relates to: #2872 and apache/openwhisk-devtools#62

@@ -60,7 +60,7 @@ object Invoker {
invokerContainerDns -> "",
invokerContainerNetwork -> null,
invokerUseRunc -> "true") ++
Map(invokerName -> null)
Map(invokerName -> "")
Copy link
Contributor

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point @tysonnorris.
done

@tysonnorris
Copy link
Contributor

LGTM

@ddragosd
Copy link
Contributor Author

@rabbah , @markusthoemmes , @dgrove-oss I'd like to merge this to fix the build on devtools repo, unless you have any feedback.

Copy link
Member

@rabbah rabbah left a 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.

Copy link
Member

@rabbah rabbah left a 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”

@ddragosd ddragosd merged commit d02b21d into apache:master Oct 26, 2017
@ddragosd ddragosd deleted the invoker_name_optional branch October 26, 2017 23:06
houshengbo pushed a commit to houshengbo/openwhisk that referenced this pull request Nov 13, 2017
* make INVOKER_NAME optional
* abort on empty invoker name when redis host is specified
houshengbo pushed a commit to houshengbo/openwhisk that referenced this pull request Nov 13, 2017
* make INVOKER_NAME optional
* abort on empty invoker name when redis host is specified
houshengbo pushed a commit to houshengbo/openwhisk that referenced this pull request Nov 14, 2017
* make INVOKER_NAME optional
* abort on empty invoker name when redis host is specified
houshengbo pushed a commit to houshengbo/openwhisk that referenced this pull request Nov 15, 2017
* make INVOKER_NAME optional
* abort on empty invoker name when redis host is specified
houshengbo pushed a commit to houshengbo/openwhisk that referenced this pull request Nov 17, 2017
* make INVOKER_NAME optional
* abort on empty invoker name when redis host is specified
BillZong pushed a commit to BillZong/openwhisk that referenced this pull request Nov 18, 2019
* make INVOKER_NAME optional
* abort on empty invoker name when redis host is specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants