From c1b5a731ce01dcbcb32225c5159a68ad56a718f8 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Fri, 6 Mar 2026 08:44:52 +0000 Subject: [PATCH] refactor: add service definitions for app, home, telemetry, and worker in Helm templates --- HelmChart/Public/oneuptime/templates/app.yaml | 2 ++ HelmChart/Public/oneuptime/templates/home.yaml | 2 ++ HelmChart/Public/oneuptime/templates/telemetry.yaml | 2 ++ HelmChart/Public/oneuptime/templates/worker.yaml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/HelmChart/Public/oneuptime/templates/app.yaml b/HelmChart/Public/oneuptime/templates/app.yaml index 9788c4fc17..e471d96799 100644 --- a/HelmChart/Public/oneuptime/templates/app.yaml +++ b/HelmChart/Public/oneuptime/templates/app.yaml @@ -137,8 +137,10 @@ spec: --- {{- end }} +{{- if $.Values.app.enabled }} # OneUptime app Service {{- $appPorts := dict "port" $.Values.app.ports.http -}} {{- $appServiceArgs := dict "ServiceName" "app" "Ports" $appPorts "Release" $.Release "Values" $.Values -}} {{- include "oneuptime.service" $appServiceArgs }} --- +{{- end }} diff --git a/HelmChart/Public/oneuptime/templates/home.yaml b/HelmChart/Public/oneuptime/templates/home.yaml index 575fdaa29c..0a7792209c 100644 --- a/HelmChart/Public/oneuptime/templates/home.yaml +++ b/HelmChart/Public/oneuptime/templates/home.yaml @@ -126,8 +126,10 @@ spec: {{- end }} +{{- if $.Values.home.enabled }} # OneUptime home Service {{- $homePorts := $.Values.home.ports -}} {{- $homeServiceArgs := dict "ServiceName" "home" "Ports" $homePorts "Release" $.Release "Values" $.Values -}} {{- include "oneuptime.service" $homeServiceArgs }} --- +{{- end }} diff --git a/HelmChart/Public/oneuptime/templates/telemetry.yaml b/HelmChart/Public/oneuptime/templates/telemetry.yaml index fb26ef9542..88a103c149 100644 --- a/HelmChart/Public/oneuptime/templates/telemetry.yaml +++ b/HelmChart/Public/oneuptime/templates/telemetry.yaml @@ -137,8 +137,10 @@ spec: --- +{{- if $.Values.telemetry.enabled }} # OneUptime telemetry Service {{- $telemetryPorts := dict "http" $.Values.telemetry.ports.http "grpc" $.Values.telemetry.ports.grpc -}} {{- $telemetryServiceArgs := dict "ServiceName" "telemetry" "Ports" $telemetryPorts "Release" $.Release "Values" $.Values -}} {{- include "oneuptime.service" $telemetryServiceArgs }} --- +{{- end }} diff --git a/HelmChart/Public/oneuptime/templates/worker.yaml b/HelmChart/Public/oneuptime/templates/worker.yaml index 43d0eb779b..bd3c51eee2 100644 --- a/HelmChart/Public/oneuptime/templates/worker.yaml +++ b/HelmChart/Public/oneuptime/templates/worker.yaml @@ -128,8 +128,10 @@ spec: --- +{{- if $.Values.worker.enabled }} # OneUptime worker Service {{- $workerPorts := $.Values.worker.ports -}} {{- $workerServiceArgs := dict "ServiceName" "worker" "Ports" $workerPorts "Release" $.Release "Values" $.Values -}} {{- include "oneuptime.service" $workerServiceArgs }} --- +{{- end }}