Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
danielscholl committed Nov 11, 2024
1 parent 9465207 commit c317fd8
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
{{- end }}

{{/* Get resource group from config-map-values */}}
{{- $configMapData := (lookup "v1" "ConfigMap" .Release.Namespace "config-map-values").data }}
{{- $valuesYaml := fromYaml ($configMapData.values) }}
{{- $resourceGroup := $valuesYaml.azure.resourceGroup }}
{{- $configMapValues := (lookup "v1" "ConfigMap" .Release.Namespace "config-map-values") }}
{{- $resourceGroup := .Values.azure.resourceGroup }}
{{- if $configMapValues }}
{{- $valuesYaml := fromYaml $configMapValues.data.values.yaml }}
{{- $resourceGroup = $valuesYaml.azure.resourceGroup }}
{{- end }}

{{- if $storageAccounts }}
{{- range $i, $storageAccount := $storageAccounts }}
Expand Down

0 comments on commit c317fd8

Please sign in to comment.