Azure / Azure/azure-functions-core-tools

How to assign func logs with a Kubernetes namespace?

Open
#2,821 1 comment 0 reactions 0 assignees View on GitHub
area: kubernetes enhancement good first issue Triaged
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

I saw `func logs` can only retrieve logs from `azure-functions` namespace.

https://github.com/Azure/azure-functions-core-tools/blob/a2634fba228decf73ec886fac413628257eb9e1c/src/Azure.Functions.Cli/Actions/LogsActions/GetLogsAction.cs#L20-L26

Can I assign my own namespace using `func logs` command?

Contributor guide

Open the contributing guide

Research direction

Start with src/Azure.Functions.Cli/Actions/LogsActions/GetLogsAction.cs#L20-L26, where the namespace restriction is referenced. Trace how func logs parses its options and selects the Kubernetes namespace, then check nearby CLI tests for coverage. Done means establishing whether a custom namespace can be supported and capturing the expected behavior in tests or documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.