// applyRunner applies the specified runner (from config) to the service
applyRunner applies the specified runner (from config) to the service
// applyRunner applies the specified runner ( from config ) to the service
func applyRunner(ctx context.Context, path string) error {
	cfg, err := configs.Get(path)
	if err != nil {
		return fmt.Errorf("Couldn't parse yml-file %s : %v", path, err)
	}
	err = configs.ValidateRunnerConfig(cfg.API.Runner)
	if err != nil {
		return err
	}
	runner := configs.PostprocessRunnerConfig(cfg.API.Runner)
	runner.Update = forceApply 
	resp, err := runnerService.Apply(ctx, runner)
	if err != nil {
		return err
	}
	fmt.Fprintf(os.Stdout, "Runner: %s has been applied", resp.Runner.Name)
	return nil
}
func applyRunner ( ctx context . Context , path string ) error { cfg , err := configs . Get ( path ) if err != nil { return fmt . Errorf ( " " , path , err ) } err = configs . ValidateRunnerConfig ( cfg . API . Runner ) if err != nil { return err } runner := configs . PostprocessRunnerConfig ( cfg . API . Runner ) runner . Update = forceApply resp , err := runnerService . Apply ( ctx , runner ) if err != nil { return err } fmt . Fprintf ( os . Stdout , " " , resp . Runner . Name ) return nil }
applyRunner applies the specified runner (from config) to the service
applyRunner applies the specified runner ( from config ) to the service
// get the runner-config // Validate and post-process runner config. // Create the request // if the runner should be updated (-f argument was used for the command)