UNCLASSIFIED

Commit 8ae6eef6 authored by bhearn7's avatar bhearn7
Browse files

fix helm conditionals

parent b16fc715
Pipeline #208652 passed with stages
in 2 minutes and 24 seconds
---
{{- if and .Values.istio.enabled .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseUi.enabled }}
{{- if and .Values.istio.enabled .Values.istio.ui.enabled .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseUi.enabled }}
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: anchore-enterprise-ui-service
namespace: {{ .Release.Namespace }}
{{- if .Values.istio.ui.labels }}
labels:
{{ toYaml .Values.istio.ui.labels | indent 4 }}
{{- end }}
{{- if .Values.istio.ui.annotations }}
annotations:
{{ toYaml .Values.istio.ui.annotations | indent 4 }}
{{- end }}
spec:
gateways:
{{- range .Values.istio.ui.gateways }}
......@@ -25,12 +33,20 @@ spec:
host: {{ .Release.Name }}-anchore-engine-enterprise-ui
{{- end }}
---
{{- if .Values.istio.enabled }}
{{- if and .Values.istio.enabled .Values.istio.api.enabled }}
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: anchore-engine-api-service
namespace: {{ .Release.Namespace }}
{{- if .Values.istio.api.labels }}
labels:
{{ toYaml .Values.istio.api.labels | indent 4 }}
{{- end }}
{{- if .Values.istio.api.annotations }}
annotations:
{{ toYaml .Values.istio.api.annotations | indent 4 }}
{{- end }}
spec:
gateways:
{{- range .Values.istio.api.gateways }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment