{{- if $.Values.statusPage.enabled }}
# OneUptime statusPage Deployment
{{- $statusPagePorts := dict "port" $.Values.statusPage.ports.http -}}
{{- $statusPageEnv := dict "PORT"  $.Values.statusPage.ports.http "DISABLE_TELEMETRY" $.Values.statusPage.disableTelemetryCollection -}}
{{- $statusPageDeploymentArgs :=dict "IsUI" true "ServiceName" "status-page" "Ports" $statusPagePorts "Release" $.Release "Values" $.Values "Env" $statusPageEnv "Resources" $.Values.statusPage.resources "NodeSelector" $.Values.statusPage.nodeSelector "PodSecurityContext" $.Values.statusPage.podSecurityContext "ContainerSecurityContext" $.Values.statusPage.containerSecurityContext "DisableAutoscaler" $.Values.statusPage.disableAutoscaler "ReplicaCount" $.Values.statusPage.replicaCount -}}
{{- include "oneuptime.deployment" $statusPageDeploymentArgs }}
---

# OneUptime statusPage Service
{{- $statusPagePorts := dict "port" $.Values.statusPage.ports.http -}}
{{- $statusPageServiceArgs := dict "ServiceName" "status-page" "Ports" $statusPagePorts "Release" $.Release "Values" $.Values -}}
{{- include "oneuptime.service" $statusPageServiceArgs }}
---

# OneUptime statusPage autoscaler
{{- $statusPageAutoScalerArgs := dict "ServiceName" "status-page" "Release" $.Release "Values" $.Values "DisableAutoscaler" $.Values.statusPage.disableAutoscaler -}}
{{- include "oneuptime.autoscaler" $statusPageAutoScalerArgs }}
---
{{- end }}