Skip to content

Commit

Permalink
Test new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
brown-a2 committed Nov 7, 2024
1 parent 2f57a5d commit a3b3c1a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions helm_deploy/wordpress/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ spec:
name: wordpress
resources:
requests:
cpu: {{ .Values.wp.resources.(.Values.configmap.envtype).requests.cpu }}
memory: {{ .Values.wp.resources.(.Values.configmap.envtype).requests.memory }}
cpu: {{ index .Values.wp.resources .Values.configmap.envtype "requests" "cpu" }}
memory: {{ index .Values.wp.resources .Values.configmap.envtype "requests" "memory" }}
limits:
cpu: {{ .Values.wp.resources.(.Values.configmap.envtype).limits.cpu }}
memory: {{ .Values.wp.resources.(.Values.configmap.envtype).limits.memory }}
cpu: {{ index .Values.wp.resources .Values.configmap.envtype "requests" "cpu" }}
memory: {{ index .Values.wp.resources .Values.configmap.envtype "requests" "memory" }}
env:
- name: PHP_INI_SCAN_DIR
value: :/usr/local/etc/php/conf.custom
Expand Down Expand Up @@ -82,11 +82,11 @@ spec:
imagePullPolicy: {{ .Values.nginx.image.imagePullPolicy }}
resources:
requests:
cpu: {{ .Values.nginx.resources.(.Values.configmap.envtype).requests.cpu }}
memory: {{ .Values.nginx.resources.(.Values.configmap.envtype).requests.memory }}
cpu: {{ index .Values.nginx.resources .Values.configmap.envtype "requests" "cpu" }}
memory: {{ index .Values.nginx.resources .Values.configmap.envtype "requests" "memory" }}
limits:
cpu: {{ .Values.nginx.resources.(.Values.configmap.envtype).limits.cpu }}
memory: {{ .Values.nginx.resources.(.Values.configmap.envtype).limits.memory }}
cpu: {{ index .Values.nginx.resources .Values.configmap.envtype "requests" "cpu" }}
memory: {{ index .Values.nginx.resources .Values.configmap.envtype "requests" "memory" }}
ports:
- containerPort: 8080
volumeMounts:
Expand Down

0 comments on commit a3b3c1a

Please sign in to comment.