Skip to content

Commit

Permalink
Merge pull request #1418 from porter-dev/feat/env-porter-node-ip
Browse files Browse the repository at this point in the history
Create `PORTER_NODE_IP` env var for `web` and `worker` helm charts
  • Loading branch information
stefanmcshane authored Oct 11, 2024
2 parents e50810b + f1b54d7 commit 4007258
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions applications/web/templates/deployment-blue-green-legacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: PORTER_NODE_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
- name: PORTER_POD_IMAGE_TAG
value: "{{ $tag }}"
{{- range $key, $val := $.Values.container.env.normal }}
Expand Down
4 changes: 4 additions & 0 deletions applications/web/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: PORTER_NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: PORTER_POD_IMAGE_TAG
value: "{{ .Values.image.tag }}"
{{- if .Values.awsEfsStorage }}
Expand Down
5 changes: 5 additions & 0 deletions applications/worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: PORTER_NODE_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
- name: PORTER_POD_IMAGE_TAG
value: "{{ .Values.image.tag }}"
{{- if .Values.global }}
Expand Down

0 comments on commit 4007258

Please sign in to comment.