Commit 16e948a
[release-1.28] Remove handling code for glog (#2534)
* barbican-kms-plugin: Remove unnecessary klog flag calls
The comment here seems to have been left over when this module was
extensively reworked in commit 7f1e9ed (#2278). In any case, it's
unnecessary: the call to 'klog.InitFlags' with a 'nil' argument results
in the flags being registered against the global 'flag.CommandLine'
flagset [1], but since cobra uses pflag rather than flag this doesn't
do anything useful. You can validate this by simply building the binary
without this change: you'll note that we only have '-v' and '-vmodule'
arguments, which are actually added by 'cli.Run' [2][3][4]. As such, we
can simply remove the calls.
[1] https://github.com/kubernetes/klog/blob/v2.100.1/klog.go#L432-L434
[2] https://github.com/kubernetes/component-base/blob/v0.28.1/cli/run.go#L46
[3] https://github.com/kubernetes/component-base/blob/v0.28.1/cli/run.go#L120
[4] https://github.com/kubernetes/component-base/blob/v0.28.1/logs/logs.go#L73-L105
Signed-off-by: Stephen Finucane <[email protected]>
* cinder-csi-plugin: Remove handling for glog
The kubernetes ecosystem has migrated to klog now and the flags
registered are for klog [1]. As such, there is no need to continue
translating from glog to klog.
[1] https://github.com/kubernetes/component-base/blob/v0.28.1/logs/logs.go#L73-L105
Signed-off-by: Stephen Finucane <[email protected]>
* manila-csi-plugin: Remove handling for glog
Remove the code to handle translation of legacy glog options to klog
options since glog is no longer a thing in kubernetes.
Signed-off-by: Stephen Finucane <[email protected]>
* client-keystone-auth: Remove handling for glog
As with our earlier change to cinder-csi-plugin, the handling code for
glog is no longer necessary now that the kubernetes ecosystem has
migrated to klog. However, unlike that change, client-keystone-auth is
not using cobra but rather plain old pflag. As a result, it is still
actually registering all the klog options. We preserve this behavior.
Signed-off-by: Stephen Finucane <[email protected]>
* k8s-keystone-auth: Remove handling for glog
This is quite similar but not identical to the earlier removal of glog
handling in client-keystone-auth. As with that utility, we are using
pflag rather than cobra here, but unlike that utility the klog options
are not being registered.
Signed-off-by: Stephen Finucane <[email protected]>
---------
Signed-off-by: Stephen Finucane <[email protected]>
Co-authored-by: Stephen Finucane <[email protected]>1 parent a6d00a7 commit 16e948a
5 files changed
+2
-103
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 37 | | |
45 | 38 | | |
46 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 45 | | |
73 | 46 | | |
74 | 47 | | |
| |||
99 | 72 | | |
100 | 73 | | |
101 | 74 | | |
102 | | - | |
103 | 75 | | |
104 | 76 | | |
105 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | 141 | | |
160 | 142 | | |
161 | 143 | | |
| |||
186 | 168 | | |
187 | 169 | | |
188 | 170 | | |
| 171 | + | |
| 172 | + | |
189 | 173 | | |
190 | 174 | | |
191 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 31 | | |
39 | 32 | | |
40 | 33 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 34 | | |
47 | 35 | | |
48 | 36 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 37 | | |
59 | 38 | | |
60 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 67 | | |
74 | 68 | | |
75 | 69 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 70 | | |
98 | 71 | | |
99 | 72 | | |
| |||
128 | 101 | | |
129 | 102 | | |
130 | 103 | | |
131 | | - | |
132 | | - | |
133 | 104 | | |
134 | 105 | | |
135 | 106 | | |
| |||
0 commit comments