Skip to content

Commit

Permalink
Check if global section presents
Browse files Browse the repository at this point in the history
  • Loading branch information
rielas committed Feb 11, 2025
1 parent bd0c2e7 commit 52900ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/brokencrystals/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |
Benchmark application that uses modern technologies and implements a set of
common security vulnerabilities
type: application
version: 0.1.1
version: 0.1.3
icon: https://raw.githubusercontent.com/NeuraLegion/brokencrystals/stable/public/public/assets/img/logo.png
keywords:
- brokencrystals
Expand Down
10 changes: 5 additions & 5 deletions charts/brokencrystals/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{- $repeaterIDs := .Values.global.repeaterIDs | default (list .Values.repeaterID) }}
{{- $token := .Values.global.token | default .Values.token }}
{{- $cluster := .Values.global.cluster | default .Values.cluster }}
{{- $timeout := .Values.global.timeout | default .Values.timeout | default "30000" }}
{{- $repeaterImageTag := .Values.global.repeaterImageTag | default .Values.repeaterImageTag | default "latest" }}
{{- $repeaterIDs := (or (and (hasKey .Values "global") .Values.global.repeaterIDs) (list .Values.repeaterID)) }}
{{- $token := (or (and (hasKey .Values "global") .Values.global.token) .Values.token) }}
{{- $cluster := (or (and (hasKey .Values "global") .Values.global.cluster) .Values.cluster) }}
{{- $timeout := (or (and (hasKey .Values "global") .Values.global.timeout) .Values.timeout "30000") }}
{{- $repeaterImageTag := (or (and (hasKey .Values "global") .Values.global.repeaterImageTag) .Values.repeaterImageTag "latest") }}

apiVersion: apps/v1
kind: Deployment
Expand Down

0 comments on commit 52900ff

Please sign in to comment.