// Complete completes UnlinkOptions after they've been created
Complete completes UnlinkOptions after they've been created
// Complete completes UnlinkOptions after they ' ve been created
func (o *UnlinkOptions) Complete(name string, cmd *cobra.Command, args []string) (err error) {
	o.commonLinkOptions.csvSupport, _ = svc.IsCSVSupported()
	err = o.complete(name, cmd, args, o.componentContext)
	if err != nil {
		return err
	}
	o.csvSupport, err = o.Client.GetKubeClient().IsCSVSupported()
	if err != nil {
		return err
	}
	if o.csvSupport && o.Context.EnvSpecificInfo != nil {
		o.operation = o.KClient.UnlinkSecret
	} else {
		o.operation = o.Client.UnlinkSecret
	}
	return err
}
func ( o * UnlinkOptions ) Complete ( name string , cmd * cobra . Command , args [ ] string ) ( err error ) { o . commonLinkOptions . csvSupport , _ = svc . IsCSVSupported ( ) err = o . complete ( name , cmd , args , o . componentContext ) if err != nil { return err } o . csvSupport , err = o . Client . GetKubeClient ( ) . IsCSVSupported ( ) if err != nil { return err } if o . csvSupport && o . Context . EnvSpecificInfo != nil { o . operation = o . KClient . UnlinkSecret } else { o . operation = o . Client . UnlinkSecret } return err }
Complete completes UnlinkOptions after they've been created
Complete completes UnlinkOptions after they ' ve been created