From 9f46f0d9167e9fde8cc6f03f8f0b2e76371064a8 Mon Sep 17 00:00:00 2001 From: Daniil Salokin Date: Tue, 20 Aug 2024 17:06:08 +0300 Subject: [PATCH] change trimSuffix from 6 to 12 (#30) --- charts/testops/Chart.yaml | 2 +- charts/testops/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/testops/Chart.yaml b/charts/testops/Chart.yaml index dfa6d21..322d6d4 100644 --- a/charts/testops/Chart.yaml +++ b/charts/testops/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: testops -version: 5.8.0 +version: 5.8.1 appVersion: 5.8.1 description: TestOps diff --git a/charts/testops/templates/_helpers.tpl b/charts/testops/templates/_helpers.tpl index 64f5952..864d2c9 100644 --- a/charts/testops/templates/_helpers.tpl +++ b/charts/testops/templates/_helpers.tpl @@ -606,7 +606,7 @@ {{- $xmx = mul $xms 3 }} {{- end }} {{- end }} - {{- if gt ($v | trimSuffix "Gi" | atoi ) 6 }} + {{- if gt ($v | trimSuffix "Gi" | atoi ) 12 }} {{- printf "-XX:+UseG1GC -XX:+UseStringDeduplication -Xms%d%s -Xmx%d%s" $xms $unit $xmx $unit }} {{- else }} {{- printf "-XX:+UseParallelGC -Xms%d%s -Xmx%d%s" $xms $unit $xmx $unit }}