Skip to content

Commit

Permalink
update tail-logs template to pull default container from proper path
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartshea authored Jul 12, 2024
1 parent 1f4f892 commit 79a0ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
- name: EXCLUDE_PATTERN
value: INFO
- name: CONTAINER_NAME
value: {{match_resource.resource.metadata.annotations.get('kubectl.kubernetes.io/default-container')}}
value: {{match_resource.resource.spec.template.metadata.annotations.get('kubectl.kubernetes.io/default-container')}}
- name: MAX_LOG_LINES
value: '500'
- name: NAMESPACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- name: EXCLUDE_PATTERN
value: INFO
- name: CONTAINER_NAME
value: {{match_resource.resource.metadata.annotations.get('kubectl.kubernetes.io/default-container')}}
value: {{match_resource.resource.spec.template.metadata.annotations.get('kubectl.kubernetes.io/default-container')}}
- name: MAX_LOG_LINES
value: '500'
- name: NAMESPACE
Expand Down

0 comments on commit 79a0ce7

Please sign in to comment.