mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Add conditional rendering for app.enabled in app.yaml
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{{- if $.Values.app.enabled }}
|
||||
# OneUptime app Deployment
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
@@ -16,7 +17,7 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ printf "%s-%s" $.Release.Name "app" }}
|
||||
{{- if $.Values.app.replicaCount }}
|
||||
{{- if and $.Values.app (hasKey $.Values.app "replicaCount") (ne $.Values.app.replicaCount nil) }}
|
||||
replicas: {{ $.Values.app.replicaCount }}
|
||||
{{- else }}
|
||||
{{- if or (not $.Values.autoscaling.enabled) ($.Values.app.disableAutoscaler) }}
|
||||
@@ -140,3 +141,4 @@ spec:
|
||||
{{- include "oneuptime.autoscaler" $appAutoScalerArgs }}
|
||||
{{- end }}
|
||||
---
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user