Skip to content

Set POD_NAME env var for logger injection#30

Merged
knative-prow-robot merged 1 commit into
knative-extensions:masterfrom
antoineco:inject-pod-name
Nov 9, 2020
Merged

Set POD_NAME env var for logger injection#30
knative-prow-robot merged 1 commit into
knative-extensions:masterfrom
antoineco:inject-pod-name

Conversation

@antoineco
Copy link
Copy Markdown
Contributor

@antoineco antoineco commented Nov 4, 2020

Fixes #5

Proposed Changes

Release Note

🧽 Propagate the controller's and webhook's Pod names to the logger

Docs

@google-cla google-cla Bot added the cla: yes Indicates the PR's author has signed the CLA. label Nov 4, 2020
@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 4, 2020
@knative-prow-robot knative-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 4, 2020
@antoineco
Copy link
Copy Markdown
Contributor Author

/assign aliok

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 4, 2020

Codecov Report

Merging #30 (39745aa) into master (cbd1106) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #30   +/-   ##
=======================================
  Coverage   84.72%   84.72%           
=======================================
  Files          10       10           
  Lines         203      203           
=======================================
  Hits          172      172           
  Misses         23       23           
  Partials        8        8           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbd1106...39745aa. Read the comment docs.

value: knative.dev/sources
- name: GL_RA_IMAGE
value: ko://knative.dev/eventing-gitlab/cmd/receive_adapter
- name: POD_NAMESPACE
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I am a bit out of context here.

I know we now inject POD_NAME to controllers, but don't we need POD_NAMESPACE anymore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know about any controller using POD_NAMESPACE in Knative, and this one is no exception. Not sure where that came from.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL, thanks for the explanation.

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2020
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aliok, antoineco

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit d4687e5 into knative-extensions:master Nov 9, 2020
@antoineco antoineco deleted the inject-pod-name branch November 9, 2020 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass pod names as env var in deployments for logging purposes

3 participants