Commit 9112915b authored by Joshua Lambert's avatar Joshua Lambert Committed by Jason Plum

Fix DaemonSet support for NGINX

parent 3c23c84e
---
title: Fix support for NGINX Ingress DaemonSets
merge_request: 748
author:
type: fixed
......@@ -13,6 +13,11 @@ spec:
updateStrategy:
{{ toYaml .Values.controller.updateStrategy | indent 4 }}
minReadySeconds: {{ .Values.controller.minReadySeconds }}
selector:
matchLabels:
app: {{ template "name" . }}
component: "{{ .Values.controller.name }}"
release: {{ .Release.Name }}
template:
metadata:
annotations:
......
......@@ -82,7 +82,7 @@ spec:
kind: Role
- group: rbac.authorization.k8s.io
kind: RoleBinding
{{ if eq .Values.global.application.allowClusterRoles true -}}
{{- if eq .Values.global.application.allowClusterRoles true }}
- group: rbac.authorization.k8s.io
kind: ClusterRole
- group: rbac.authorization.k8s.io
......@@ -98,6 +98,10 @@ spec:
kind: PersistentVolumeClaim
- group: apps
kind: Deployment
{{- if eq (index .Values "nginx-ingress" "controller" "kind") "DaemonSet" }}
- group: apps
kind: DaemonSet
{{- end }}
- group: autoscaling
kind: HorizontalPodAutoscaler
- group: apps
......
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