Skip to content

Commit

Permalink
Enable lingress to be a DaemonSet again.
Browse files Browse the repository at this point in the history
  • Loading branch information
blaubaer committed Dec 20, 2023
1 parent 10fc63c commit 259bf09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/lingress/templates/30-controller.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{{- if .Values.controller.enabled -}}
apiVersion: apps/v1
{{- if not .Values.controller.kind}}
kind: Deployment
{{- else }}
kind: {{.Values.controller.kind}}
{{- end }}
metadata:
name: {{ template "lingress.fullname" . }}
namespace: {{ template "lingress.namespace" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/lingress/templates/50-autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ metadata:
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: {{.Values.controller.kind}}
kind: {{.Values.controller.kind | default `Deployment`}}
name: {{ template "lingress.fullname" . }}
{{- with .Values.autoscaler.minReplicas }}
minReplicas: {{.}}
Expand Down

0 comments on commit 259bf09

Please sign in to comment.