Another Code review change

Signed-off-by: Aaron Mell <amell@lumindigital.com>
pull/6341/head
Aaron Mell 6 years ago
parent 851e016e90
commit 01d7657c1e

@ -96,7 +96,8 @@ type RESTClientGetter interface {
ToRESTMapper() (meta.RESTMapper, error)
}
type debug func(format string, v ...interface{})
// DebugLog sets the logger that writes debug strings
type DebugLog func(format string, v ...interface{})
// capabilities builds a Capabilities from discovery information.
func (c *Configuration) getCapabilities() (*chartutil.Capabilities, error) {
@ -214,7 +215,7 @@ func (c *Configuration) recordRelease(r *release.Release) {
}
// InitActionConfig initializes the action configuration
func InitActionConfig(envSettings *cli.EnvSettings, allNamespaces bool, helmDriver string, log debug) (*Configuration, error) {
func InitActionConfig(envSettings *cli.EnvSettings, allNamespaces bool, helmDriver string, log DebugLog) (*Configuration, error) {
var actionConfig Configuration
kubeconfig := kubeConfig(envSettings)

Loading…
Cancel
Save