You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* magnum-auto-healer: Stop registering klog options
Per [1], this is no longer desirable. We are already registering the
minimal options that the KEP suggests so we can simply stop registering
the others.
[1] https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components
Signed-off-by: Stephen Finucane <[email protected]>
* client-keystone-auth: Stop registering klog options
As with magnum-auto-healer, we don't need/want to do this anymore.
Don't.
Signed-off-by: Stephen Finucane <[email protected]>
* cinder-csi-plugin: Use binary name in help page
Signed-off-by: Stephen Finucane <[email protected]>
* client-keystone-auth: Migrate to cobra
This one is relatively trivial since the 'Run' function in
'k8s.io/component-base/cli' does most of the heavy lifting for us now,
including registering logging arguments.
Signed-off-by: Stephen Finucane <[email protected]>
* k8s-keystone-auth: Migrate to cobra
This one is slightly trickier due to how we're doing configuration but
there's still nothing crazy confusing here.
Signed-off-by: Stephen Finucane <[email protected]>
* occm: Remove unnecessary flag handling code
k8s.io/cloud-provider switched to cobra some time back [1] and cobra
uses 'pflag' rather than 'flag' under the hood. As such, there's no
reason to keep the handling code for 'flag' options around. Remove it.
[1] https://github.com/kubernetes/cloud-provider/blob/v0.28.0/app/controllermanager.go#L87-L124
Signed-off-by: Stephen Finucane <[email protected]>
* occm: Register additional options correctly
The 'NewCloudControllerManagerCommand' function, which generates the cobra
Command that forms the basis of a cloud provider binary, accepts an
'additionalFlags' argument that allows us to (surprise) pass in
additional provider-specific arguments. We were not making use of this,
which means our options were not showing in the usage string shown on
e.g. '--help'. Correct this on our end, while we wait for the fix in
k8s.io/cloud-provider [1] to close the loop fully.
In additional, move our 'InitLogs' call higher up the function to before
our first logging call so that everything is initialised correctly.
[1] kubernetes/kubernetes#120522
Signed-off-by: Stephen Finucane <[email protected]>
* magnum-auto-healer: Remove use of 'init' methods
Instead, register the health checks and cloud provider plugins on
controller start up. This avoids side-effects from merely importing the
modules - which are polluting the output of '--help' - and is generally
"less weird".
To do this, we must make the registration methods part of the public API
and remove the 'pkg/autohealing/cloudprovider/register' package in
favour of a public registration method in the
'pkg/autohealing/cloudprovider/openstack' package.
Signed-off-by: Stephen Finucane <[email protected]>
---------
Signed-off-by: Stephen Finucane <[email protected]>
0 commit comments