UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 5a34c895 authored by Tawsif Siddiqui's avatar Tawsif Siddiqui
Browse files

Updated BB code to include istio annotation in eck-operator template

parent 8dc2d5a4
No related branches found
No related tags found
2 merge requests!1386Master,!1171Updated BB code to include istio annotation in eck-operator template
Pipeline #610344 failed
......@@ -145,3 +145,15 @@ bigbang.addValueIfSet can be used to nil check parameters before adding them to
{{- end }}
{{- end }}
{{- end -}}
{{/*
Annotation for Istio version
*/}}
{{- define "istioAnnotation" -}}
{{- if .Values.istio.git.semver -}}
bigbang.dev/istioVersion: {{ .Values.istio.git.semver | trimSuffix (regexFind "-bb.*" .Values.istio.git.semver) }}
{{- else if .Values.istio.git.tag -}}
bigbang.dev/istioVersion: {{ .Values.istio.git.tag | trimSuffix (regexFind "-bb.*" .Values.istio.git.tag) }}
{{- else if .Values.istio.git.branch -}}
bigbang.dev/istioVersion: {{ .Values.istio.git.branch }}
{{- end -}}
{{- end -}}
......@@ -10,8 +10,11 @@ license:
image:
pullPolicy: {{ .Values.imagePullPolicy }}
podAnnotations:
{{- if .Values.istio.enabled }}
{{ include "istioAnnotation" . }}
{{- end }}
sidecar.istio.io/inject: "true"
traffic.sidecar.istio.io/includeInboundPorts: "*"
traffic.sidecar.istio.io/excludeInboundPorts: "9443"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment