Skip to content

Commit

Permalink
try implicit checks for each section to avoid adding content in the d…
Browse files Browse the repository at this point in the history
…efault that might not be needed. (#34)

version bump
  • Loading branch information
stewartshea authored Aug 15, 2024
1 parent 13805a3 commit 67b8d12
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/runwhen-local/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: runwhen-local
description: A Helm chart RunWhen Local - A community powered troubleshooting cheat sheet
type: application
version: 0.1.23
version: 0.1.24
appVersion: "0.5.20"
icon: https://storage.googleapis.com/runwhen-nonprod-shared-images/icons/runwhen_icon.png
dependencies:
Expand Down
17 changes: 16 additions & 1 deletion charts/runwhen-local/templates/local-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,22 @@ data:
codeCollections:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.codeCollections | nindent 6 }}
cloudConfig:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig | nindent 6 }}
{{- if .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.kubernetes }}
kubernetes:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.kubernetes | nindent 8 }}
{{- end }}
{{- if .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.azure }}
azure:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.azure | nindent 8 }}
{{- end }}
{{- if .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.gcp }}
gcp:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.gcp | nindent 8 }}
{{- end }}
{{- if .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.aws }}
aws:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.aws | nindent 8 }}
{{- end }}
custom:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.custom | nindent 6 }}
{{ end }}
Expand Down

0 comments on commit 67b8d12

Please sign in to comment.