Skip to content

Commit

Permalink
Fix deployment-blue-green-legacy.yaml again
Browse files Browse the repository at this point in the history
`template: web/templates/deployment-blue-green-legacy.yaml:77:30:
executing "web/templates/deployment-blue-green-legacy.yaml" at
<.Values.metricsScraping.enabled>: can't evaluate field Values in type
interface {}`

* porter-dev#1200
* porter-dev#1219
  • Loading branch information
KevinCarterDev committed Feb 13, 2025
1 parent 5abbcf3 commit c9f4722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/web/templates/deployment-blue-green-legacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ spec:
- name: http
containerPort: {{ $.Values.container.port }}
protocol: TCP
{{- if and .Values.metricsScraping.enabled (ne .Values.metricsScraping.port .Values.container.port) }}
{{- if and $.Values.metricsScraping.enabled (ne $.Values.metricsScraping.port $.Values.container.port) }}
# if metrics scraping is enabled and the port is not the same as the container port, add a metrics port
- name: metrics
containerPort: {{ .Values.metricsScraping.port }}
containerPort: {{ $.Values.metricsScraping.port }}
protocol: TCP
{{- end }}
{{- range $.Values.container.extraPorts }}
Expand Down

0 comments on commit c9f4722

Please sign in to comment.