Skip to content

Commit

Permalink
Merge pull request #51 from middleware-labs/bhogayatakb/AGE-129
Browse files Browse the repository at this point in the history
Added downward API call for POD_NAME
  • Loading branch information
bhogayatakb authored Jan 22, 2025
2 parents 162a3fe + 2f52c82 commit 41e2769
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/mw-kube-agent-v2/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.8.0
version: 2.8.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.9"
appVersion: "0.2.0"
6 changes: 6 additions & 0 deletions charts/mw-kube-agent-v2/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ spec:
- --otel-config-file
- /app/otel-config-daemonset.yaml
env:
{{- if .Values.features.enablePrometheusTargetAllocator }}
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
{{- end }}
- name: MW_TARGET
value: {{ .Values.mw.target | quote }}
- name: MW_KUBE_CLUSTER_NAME
Expand Down
6 changes: 6 additions & 0 deletions charts/mw-kube-agent-v2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ spec:
- name: mw-deployment-otel-config-volume
mountPath: /app
env:
{{- if .Values.features.enablePrometheusTargetAllocator }}
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
{{- end }}
- name: MW_TARGET
value: {{ .Values.mw.target | quote }}
- name: MW_KUBE_CLUSTER_NAME
Expand Down

0 comments on commit 41e2769

Please sign in to comment.