This is an automated email from the ASF dual-hosted git repository.
dgrove pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push:
new 7795060 Support enabling concurrency (#438)
7795060 is described below
commit 7795060ab3c8dc4d83cb5c807398c507214c3c3e
Author: Maciej MaĆecki <[email protected]>
AuthorDate: Tue Feb 26 23:18:30 2019 +0100
Support enabling concurrency (#438)
---
helm/openwhisk/templates/invoker-pod.yaml | 3 +++
helm/openwhisk/values-metadata.yaml | 6 ++++++
helm/openwhisk/values.yaml | 1 +
3 files changed, 10 insertions(+)
diff --git a/helm/openwhisk/templates/invoker-pod.yaml
b/helm/openwhisk/templates/invoker-pod.yaml
index 1247ec8..e6a985a 100644
--- a/helm/openwhisk/templates/invoker-pod.yaml
+++ b/helm/openwhisk/templates/invoker-pod.yaml
@@ -116,6 +116,9 @@ spec:
- name: "CONFIG_whisk_docker_containerFactory_containerArgs_network"
value: {{ .Values.invoker.containerFactory.networkConfig.name |
quote }}
+ - name: "CONFIG_whisk_containerFactory_containerArgs_extraArgs_env_0"
+ value: "__OW_ALLOW_CONCURRENT={{
.Values.invoker.containerFactory.enableConcurrency }}"
+
# Invoker name is the name of the node (DaemonSet) or pod
(StatefulSet)
- name: "INVOKER_NAME"
valueFrom:
diff --git a/helm/openwhisk/values-metadata.yaml
b/helm/openwhisk/values-metadata.yaml
index 791e417..f2dfa44 100644
--- a/helm/openwhisk/values-metadata.yaml
+++ b/helm/openwhisk/values-metadata.yaml
@@ -1022,6 +1022,12 @@ invoker:
value: "docker"
- label: "kubernetes"
value: "kubernetes"
+ enableConcurrency:
+ __metadata:
+ label: "Enable concurrency"
+ description: "Should the invoker pass `__OW_ALLOW_CONCURRENT=true` to
action containers, enabling concurrent execution in supporting runtimes"
+ type: "boolean"
+ required: true
networkConfig:
name:
__metadata:
diff --git a/helm/openwhisk/values.yaml b/helm/openwhisk/values.yaml
index 9392747..e9bf7ef 100644
--- a/helm/openwhisk/values.yaml
+++ b/helm/openwhisk/values.yaml
@@ -245,6 +245,7 @@ invoker:
dind: false
useRunc: false
impl: "docker"
+ enableConcurrency: false
networkConfig:
name: "bridge"
dns: