blob: 27b614d84c3c3207f4dca6f33afcd0886245677d [file] [log] [blame]
#
# 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 }}
whisk_external_api_host_proto: {{ .Values.whisk.ingress.apiHostProto | quote }}
whisk_external_api_host_port: {{ .Values.whisk.ingress.apiHostPort | quote }}
whisk_external_api_host_name: {{ .Values.whisk.ingress.apiHostName | quote }}
whisk_external_api_host_nameAndPort: "{{ .Values.whisk.ingress.apiHostName }}:{{ .Values.whisk.ingress.apiHostPort }}"
whisk_external_api_host_url: "{{ .Values.whisk.ingress.apiHostProto }}://{{ .Values.whisk.ingress.apiHostName }}:{{ .Values.whisk.ingress.apiHostPort }}"
{{- if .Values.whisk.ingress.useInternally }}
whisk_internal_api_host_proto: {{ .Values.whisk.ingress.apiHostProto | quote }}
whisk_internal_api_host_port: {{ .Values.whisk.ingress.apiHostPort | quote }}
whisk_internal_api_host_name: {{ .Values.whisk.ingress.apiHostName | quote }}
whisk_internal_api_host_nameAndPort: "{{ .Values.whisk.ingress.apiHostName }}:{{ .Values.whisk.ingress.apiHostPort }}"
whisk_internal_api_host_url: "{{ .Values.whisk.ingress.apiHostProto }}://{{ .Values.whisk.ingress.apiHostName }}:{{ .Values.whisk.ingress.apiHostPort }}"
{{- else }}
whisk_internal_api_host_proto: "http"
whisk_internal_api_host_port: {{ .Values.nginx.httpPort | quote }}
whisk_internal_api_host_name: "{{ .Release.Name }}-nginx.{{ .Release.Namespace }}.svc.{{ .Values.k8s.domain }}"
whisk_internal_api_host_nameAndPort: "{{ .Release.Name }}-nginx.{{ .Release.Namespace }}.svc.{{ .Values.k8s.domain }}:{{ .Values.nginx.httpPort }}"
whisk_internal_api_host_url: "http://{{ .Release.Name }}-nginx.{{ .Release.Namespace }}.svc.{{ .Values.k8s.domain }}:{{ .Values.nginx.httpPort }}"
{{- end }}