* Allow multiple namespaces for builder manager * Enable multiple namespaces for executor informers * Added missing context * helm chart support for multiple namespaces * Directly consume map type from GetInformerForNamespaces fn * Optimize function resolver by choosing namespace-specific informer * helm chart support for multiple namespaces * consider default namespace and move duplicate code to helm template * Improve documentation for fission namespace values Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> Co-authored-by: shubham bansal <shubhambansaliimtgn@gmail.com>
82 lines
2.8 KiB
Smarty
82 lines
2.8 KiB
Smarty
{{/* vim: set filetype=mustache: */}}
|
|
{{/*
|
|
Expand the name of the chart.
|
|
*/}}
|
|
{{- define "name" -}}
|
|
{{- default .Chart.Name .Values.nameOverride | trunc 24 | trimSuffix "-" -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Create a default fully qualified app name.
|
|
We truncate at 24 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
*/}}
|
|
{{- define "fullname" -}}
|
|
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
|
{{- printf "%s-%s" .Release.Name $name | trunc 24 | trimSuffix "-" -}}
|
|
{{- end -}}
|
|
|
|
|
|
{{/*
|
|
This is a template with config parameters for optional features in fission. This gets mounted on to the controller pod
|
|
as a config map.
|
|
To add new features with config parameters, create a yaml block below with the feature name and define a corresponding struct in
|
|
controller/config.go
|
|
*/}}
|
|
{{- define "config" -}}
|
|
canary:
|
|
enabled: {{ .Values.canaryDeployment.enabled }}
|
|
prometheusSvc: {{ .Values.prometheus.serviceEndpoint | default "" | quote }}
|
|
{{- printf "\n" -}}
|
|
auth:
|
|
enabled: {{ .Values.authentication.enabled | default false }}
|
|
{{- if .Values.authentication.enabled }}
|
|
authUriPath: {{ .Values.authentication.authUriPath | default "/auth/login" | quote}}
|
|
jwtExpiryTime: {{ .Values.authentication.jwtExpiryTime | default 120 }}
|
|
jwtIssuer: {{ .Values.authentication.jwtIssuer | default "fission" | quote }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
This template generates the image name for the deployment depending on the value of "repository" field in values.yaml file.
|
|
*/}}
|
|
{{- define "fission-bundleImage" -}}
|
|
{{- if .Values.repository -}}
|
|
{{- if eq .Values.imageTag "" -}}
|
|
{{ .Values.repository }}/{{ .Values.image }}
|
|
{{- else -}}
|
|
{{ .Values.repository }}/{{ .Values.image }}:{{ .Values.imageTag }}
|
|
{{- end }}
|
|
{{- else -}}
|
|
{{- if eq .Values.imageTag "" -}}
|
|
{{ .Values.image }}
|
|
{{- else -}}
|
|
{{ .Values.image }}:{{ .Values.imageTag }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
|
|
{{- define "opentelemtry.envs" }}
|
|
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
|
value: "{{ .Values.openTelemetry.otlpCollectorEndpoint }}"
|
|
- name: OTEL_EXPORTER_OTLP_INSECURE
|
|
value: "{{ .Values.openTelemetry.otlpInsecure }}"
|
|
{{- if .Values.openTelemetry.otlpHeaders }}
|
|
- name: OTEL_EXPORTER_OTLP_HEADERS
|
|
value: "{{ .Values.openTelemetry.otlpHeaders }}"
|
|
{{- end }}
|
|
- name: OTEL_TRACES_SAMPLER
|
|
value: "{{ .Values.openTelemetry.tracesSampler }}"
|
|
- name: OTEL_TRACES_SAMPLER_ARG
|
|
value: "{{ .Values.openTelemetry.tracesSamplingRate }}"
|
|
- name: OTEL_PROPAGATORS
|
|
value: "{{ .Values.openTelemetry.propagators }}"
|
|
{{- end }}
|
|
|
|
{{- define "fission-resource-namespace.envs" }}
|
|
- name: FISSION_RESOURCE_NAMESPACES
|
|
{{- if not .Values.singleDefaultNamespace }}
|
|
value: "{{ .Values.defaultNamespace }},{{ join "," .Values.additionalFissionNamespaces }}"
|
|
{{- else }}
|
|
value: {{ .Values.defaultNamespace }}
|
|
{{- end }}
|
|
{{- end }} |