From e852e1e62d99422c6e7015ef7e3065605cce408f Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Mon, 17 Jul 2017 17:58:56 -0500 Subject: [PATCH] Ingress: Fix deployment type switching This PS fixes the switching of deployment types from: Deployment to Daemonset. Change-Id: I4b1ddb70189d74b071b35f0e1f81cf26d53a21f6 --- ingress/templates/deployment-ingress.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ingress/templates/deployment-ingress.yaml b/ingress/templates/deployment-ingress.yaml index 7f101a0035..86150b1361 100644 --- a/ingress/templates/deployment-ingress.yaml +++ b/ingress/templates/deployment-ingress.yaml @@ -14,8 +14,13 @@ {{- $envAll := . }} --- +{{- if eq .Values.deployment_type "Deployment" }} apiVersion: apps/v1beta1 -kind: {{ .Values.deployment_type }} +kind: Deployment +{{- else if eq .Values.deployment_type "DaemonSet" }} +apiVersion: extensions/v1beta1 +kind: DaemonSet +{{- end }} metadata: name: ingress-api spec: