| # |
| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| apiVersion: v1 |
| kind: ConfigMap |
| metadata: |
| name: {{ .Release.Name }}-whisk.config |
| labels: |
| {{ include "openwhisk.label_boilerplate" . | indent 4 }} |
| data: |
| whisk_info_date: {{ .Values.whisk.versions.openwhisk.buildDate | quote }} |
| whisk_info_buildNo: {{ .Values.whisk.versions.openwhisk.buildNo | quote }} |
| whisk_cli_version_tag: {{ .Values.whisk.versions.openwhiskCli.tag | quote }} |
| whisk_system_namespace: {{ .Values.whisk.systemNameSpace | quote }} |
| {{- if eq .Values.whisk.ingress.type "LoadBalancer" }} |
| {{- if eq .Values.whisk.ingress.awsSSL "true" }} |
| whisk_api_host_proto: "http" |
| whisk_api_host_port: {{ .Values.nginx.httpPort | quote }} |
| whisk_api_host_name: "{{ .Release.Name }}-nginx.{{ .Release.Namespace }}.svc.{{ .Values.k8s.domain }}" |
| whisk_api_host_nameAndPort: "{{ .Release.Name }}-nginx.{{ .Release.Namespace }}.svc.{{ .Values.k8s.domain }}:{{ .Values.nginx.httpPort }}" |
| whisk_api_host_url: "http://{{ .Release.Name }}-nginx.{{ .Release.Namespace }}.svc.{{ .Values.k8s.domain }}:{{ .Values.nginx.httpPort }}" |
| {{- else }} |
| whisk_api_host_proto: "https" |
| whisk_api_host_port: {{ .Values.nginx.httpsPort | quote }} |
| whisk_api_host_name: "{{ .Release.Name }}-nginx.{{ .Release.Namespace }}.svc.{{ .Values.k8s.domain }}" |
| whisk_api_host_nameAndPort: "{{ .Release.Name }}-nginx.{{ .Release.Namespace }}.svc.{{ .Values.k8s.domain }}:{{ .Values.nginx.httpsPort }}" |
| whisk_api_host_url: "https://{{ .Release.Name }}-nginx.{{ .Release.Namespace }}.svc.{{ .Values.k8s.domain }}:{{ .Values.nginx.httpsPort }}" |
| {{- end }} |
| {{- else }} |
| whisk_api_host_proto: {{ .Values.whisk.ingress.apiHostProto | quote }} |
| whisk_api_host_port: {{ .Values.whisk.ingress.apiHostPort | quote }} |
| whisk_api_host_name: {{ .Values.whisk.ingress.apiHostName | quote }} |
| whisk_api_host_nameAndPort: "{{ .Values.whisk.ingress.apiHostName }}:{{ .Values.whisk.ingress.apiHostPort }}" |
| whisk_api_host_url: "{{ .Values.whisk.ingress.apiHostProto }}://{{ .Values.whisk.ingress.apiHostName }}:{{ .Values.whisk.ingress.apiHostPort }}" |
| {{- end }} |