mirror of https://github.com/k3s-io/k3s
Merge pull request #52182 from cheftako/flags
Automatic merge from submit-queue (batch tested with PRs 51438, 52182, 51607, 47912, 51595). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. Ensure we log the flag apiserver starts with. Trying to make sure we always log the flags an instance of apiserver starts with. This can be especially valuable for emailed logs or e2e/kubemark tests. **What this PR does / why we need it**: Ensures we log the flags an apiserver was started with. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #none **Special notes for your reviewer**: **Release note**:```release-note NONE ```pull/6/head
commit
d2cf4d01c6
|
@ -49,6 +49,6 @@ func InitFlags() {
|
||||||
pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)
|
pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)
|
||||||
pflag.Parse()
|
pflag.Parse()
|
||||||
pflag.VisitAll(func(flag *pflag.Flag) {
|
pflag.VisitAll(func(flag *pflag.Flag) {
|
||||||
glog.V(4).Infof("FLAG: --%s=%q", flag.Name, flag.Value)
|
glog.V(2).Infof("FLAG: --%s=%q", flag.Name, flag.Value)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue