// Complete initializes the options instance and validates flags
Complete initializes the options instance and validates flags
// Complete initializes the options instance and validates flags
func (o *options) Complete(ctx context.Context) error {
	log, err := logger.New(nil)
	if err != nil {
		return err
	}
	o.Log = log.WithName("setup")
	logger.SetLogger(log)
	ctrl.SetLogger(log)
	o.Config, err = o.parseConfigurationFile(ctx)
	if err != nil {
		return err
	}
	err = o.validate()
	return err
}
func ( o * options ) Complete ( ctx context . Context ) error { log , err := logger . New ( nil ) if err != nil { return err } o . Log = log . WithName ( " " ) logger . SetLogger ( log ) ctrl . SetLogger ( log ) o . Config , err = o . parseConfigurationFile ( ctx ) if err != nil { return err } err = o . validate ( ) return err }
Complete initializes the options instance and validates flags
Complete initializes the options instance and validates flags