This is an automated email from the ASF dual-hosted git repository.

csantanapr 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 3cb1af9  Helm chart: install_catalog job now working (#188)
3cb1af9 is described below

commit 3cb1af974f3137a056af49d0cd06132266521bab
Author: David Grove <[email protected]>
AuthorDate: Mon Apr 30 18:17:30 2018 -0400

    Helm chart: install_catalog job now working (#188)
---
 helm/templates/apigateway_deployment.yaml |  5 +++++
 helm/templates/cluster_config.yaml        | 21 +++++++++++++++++++++
 helm/templates/install_catalog_job.yaml   | 31 +++++++++++++++++++++++++++++++
 helm/templates/invoker_daemonset.yaml     |  5 ++++-
 helm/values.yaml                          | 13 +++++++++++--
 5 files changed, 72 insertions(+), 3 deletions(-)

diff --git a/helm/templates/apigateway_deployment.yaml 
b/helm/templates/apigateway_deployment.yaml
index 913b8e2..d3d5c63 100644
--- a/helm/templates/apigateway_deployment.yaml
+++ b/helm/templates/apigateway_deployment.yaml
@@ -58,3 +58,8 @@ spec:
             value: "127.0.0.1"
           - name: "REDIS_PORT"
             value: "6379"
+          - name: "PUBLIC_GATEWAY_URL"
+            valueFrom:
+              configMapKeyRef:
+                name: whisk.ingress
+                key: apigw_url
diff --git a/helm/templates/cluster_config.yaml 
b/helm/templates/cluster_config.yaml
new file mode 100644
index 0000000..7c71c7a
--- /dev/null
+++ b/helm/templates/cluster_config.yaml
@@ -0,0 +1,21 @@
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: whisk.ingress
+  namespace: {{ .Release.Namespace | quote }}
+data:
+  api_host: {{ required "A valid api_host is required" 
.Values.whisk.ingress.api_host }}
+  apigw_url: {{ required "A valid apigw_url is required" 
.Values.whisk.ingress.apigw_url }}
+
+---
+apiVersion: v1
+kind: Secret
+metadata:
+  name: whisk.auth
+  namespace: {{ .Release.Namespace | quote }}
+type: Opaque
+data:
+  system: {{ .Values.whisk.auth.system | b64enc }}
+  guest: {{ .Values.whisk.auth.guest | b64enc }}
+---
diff --git a/helm/templates/install_catalog_job.yaml 
b/helm/templates/install_catalog_job.yaml
new file mode 100644
index 0000000..c494f7b
--- /dev/null
+++ b/helm/templates/install_catalog_job.yaml
@@ -0,0 +1,31 @@
+apiVersion: batch/v1
+kind: Job
+metadata:
+  name: install-catalog
+  namespace: {{ .Release.Namespace | quote }}
+spec:
+  activeDeadlineSeconds: 600
+  template:
+    metadata:
+      name: install-catalog
+    spec:
+      initContainers:
+      # Wait for a controller to be up so we can perfom our CRUD actions with 
the CLI
+{{ include "readiness.waitForController" . | indent 6 }}
+      containers:
+      - name: catalog
+        image: openwhisk/kube-openwhisk-catalog
+        env:
+          - name: "WHISK_CLI_VERSION"
+            value: {{ .Values.whisk.versions.cli | quote }}
+          - name: "WHISK_AUTH"
+            valueFrom:
+              secretKeyRef:
+                name: whisk.auth
+                key: system
+          - name: "WHISK_API_HOST_NAME"
+            valueFrom:
+              configMapKeyRef:
+                name: whisk.ingress
+                key: api_host
+      restartPolicy: Never
diff --git a/helm/templates/invoker_daemonset.yaml 
b/helm/templates/invoker_daemonset.yaml
index 1e5c380..7b34d14 100644
--- a/helm/templates/invoker_daemonset.yaml
+++ b/helm/templates/invoker_daemonset.yaml
@@ -59,7 +59,10 @@ spec:
           - name: "PORT"
             value: "8080"
           - name: "WHISK_API_HOST_NAME"
-            value: "nginx.openwhisk"
+            valueFrom:
+              configMapKeyRef:
+                name: whisk.ingress
+                key: api_host
           - name: "INVOKER_CONTAINER_NETWORK"
             value: "bridge"
           - name: "CONFIG_whisk_docker_containerFactory_useRunc"
diff --git a/helm/values.yaml b/helm/values.yaml
index fa1bb11..7cdb21d 100644
--- a/helm/values.yaml
+++ b/helm/values.yaml
@@ -2,6 +2,17 @@
 # This is a YAML-formatted file.
 # Declare variables to be passed into your templates.
 
+# cluster configuration
+whisk:
+  # Production deployments _MUST_ override these default auth values
+  auth:
+    system: 
"789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP"
+    guest: 
"23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP"
+  versions:
+    cli: "latest"
+  systemNameSpace: "/whisk.system"
+  ingress:
+
 # zookeeper configurations
 zookeeper:
   deploymentName: "zookeeper"
@@ -92,8 +103,6 @@ global:
   controllerReplicaCount: 1
   couchdbUserName: "whisk_admin"
   couchdbPassword: "some_passw0rd"
-  redisServiceName: "redis"
-  redisServicePort: 6379
   # Resolve the pod/node affinity for invoker, controller and other components.
   affinity:
     enabled: true

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to