New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --logging-format
flag for kube-apiserver
#91501
Add --logging-format
flag for kube-apiserver
#91501
Conversation
Hi @tahsinrahman. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -149,6 +152,7 @@ func (s *ServerRunOptions) Flags() (fss cliflag.NamedFlagSets) { | |||
s.EgressSelector.AddFlags(fss.FlagSet("egress selector")) | |||
s.Admission.AddFlags(fss.FlagSet("admission")) | |||
s.Metrics.AddFlags(fss.FlagSet("metrics")) | |||
s.Logs.AddFlags(fss.FlagSet("logging-format")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s.Logs.AddFlags(fss.FlagSet("logging-format")) | |
s.Logs.AddFlags(fss.FlagSet("logs")) |
We register a flag group for logs, maybe list of flags will grow in future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! updated!
One nit, else looks good! |
/assign @lavalamp |
f12e3ce
to
f1a6d6c
Compare
/ok-to-test Is this where the flag is defined? https://github.com/kubernetes/component-base/blob/master/logs/options.go#L53 If so, that needs some work before we can add it to apiserver. Specifically, the help message needs to explain what the flag does, and what the options are. Also is "text" the only option? I would prefer to not install the flag until there's additional options. |
@tahsinrahman please run ./hack/update-bazel.sh @lavalamp Although this flag currently allows only "text" option, it allows for registering additional formats by registering own implementation, making logging in k8s much more customizable. I don't think we should be blocking on implementing additional formats as they will largely delay KEP implementation. |
Who can register additional formats? End users? Or we, the k8s authors? If the latter I think it makes more sense to install the flag when we add a second option. I don't think that will change the time at which users get value for this, and it won't leave a confusing intermediate state. |
f1a6d6c
to
201f869
Compare
/retest |
/retest |
1 similar comment
/retest |
Great-- I'd like the help PR to merge first as well.
…On Tue, Jun 16, 2020 at 3:22 AM Marek Siarkowicz ***@***.***> wrote:
/retest
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#91501 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE6BFQUQSUA5N65WFLSJE3RW5BV5ANCNFSM4NMJQEEA>
.
|
PR updating flag was merged. Can go move forward with this one? @lavalamp |
/milestone v1.19 |
Looks like US people are on holiday. @wojtek-t can you take a look? |
/priority important-soon |
Hey @sttts Can you take a look? Other approves are on holidays. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts, tahsinrahman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
6 similar comments
/retest |
/retest |
/retest |
/retest |
/retest |
/retest |
/kind feature
What this PR does / why we need it:
Ref: kubernetes/enhancements#1602
/assign @serathius