From 4249153769fa50bbd2c0cc0b41feee47ff570318 Mon Sep 17 00:00:00 2001 From: pgodey <38923355+pgodey@users.noreply.github.com> Date: Sat, 20 Dec 2025 08:14:25 -0800 Subject: [PATCH] add hibernate option to sss service --- charts/sss/Chart.yaml | 2 +- charts/sss/templates/deployment.yaml | 2 +- charts/sss/values.yaml | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/charts/sss/Chart.yaml b/charts/sss/Chart.yaml index 256c03f..7c0adfe 100644 --- a/charts/sss/Chart.yaml +++ b/charts/sss/Chart.yaml @@ -7,7 +7,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.1 +version: 0.0.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/sss/templates/deployment.yaml b/charts/sss/templates/deployment.yaml index ca9400e..7b64e27 100644 --- a/charts/sss/templates/deployment.yaml +++ b/charts/sss/templates/deployment.yaml @@ -5,7 +5,7 @@ metadata: labels: {{- include "sss.labels" . | nindent 4 }} spec: - replicas: 1 + replicas: {{ ((.Values.global).hibernate | default false) | ternary 0 .Values.replicaCount }} selector: matchLabels: {{- include "sss.selectorLabels" . | nindent 6 }} diff --git a/charts/sss/values.yaml b/charts/sss/values.yaml index 9ccde8d..68be479 100644 --- a/charts/sss/values.yaml +++ b/charts/sss/values.yaml @@ -1,7 +1,12 @@ -# Default values for agent. # This is a YAML-formatted file. # Declare variables to be passed into your templates. +global: + # Hibernate the application + # Scales down pods to zero if set to true + # Default is false + hibernate: false + replicaCount: 1 image: