Skip to content

Commit

Permalink
Project pod name as envvar vor logger annotations (#9464)
Browse files Browse the repository at this point in the history
This should fix knative/pkg#1408 (comment),
once the parent PKG PR merges in (knative/pkg#1714)
  • Loading branch information
vagababov committed Sep 17, 2020
1 parent 6e47416 commit 966b398
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/core/deployments/autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ spec:
memory: 400Mi

env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
Expand Down
4 changes: 4 additions & 0 deletions config/core/deployments/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ spec:
memory: 1000Mi

env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
Expand Down
4 changes: 4 additions & 0 deletions config/core/deployments/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ spec:
memory: 500Mi

env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
Expand Down

0 comments on commit 966b398

Please sign in to comment.