// MatchExecutionMode returns the mode based on the string represetantion of it
// and a boolean if that mode is exist or not, the mode will always return in uppercase,
// the input argument is not case sensitive.
//
// The value is just a string but we do this to protect users from mistakes
// or future releases maybe remove/change or replace a string will be much easier.
MatchExecutionMode returns the mode based on the string represetantion of it
and a boolean if that mode is exist or not, the mode will always return in uppercase,
the input argument is not case sensitive.

The value is just a string but we do this to protect users from mistakes
or future releases maybe remove/change or replace a string will be much easier.
// MatchExecutionMode returns the mode based on the string represetantion of it // and a boolean if that mode is exist or not the mode will always return in uppercase // the input argument is not case sensitive . // // The value is just a string but we do this to protect users from mistakes // or future releases maybe remove / change or replace a string will be much easier .
func MatchExecutionMode(modeStr string) (ExecutionMode, bool) {
	modeStr = strings.ToUpper(modeStr)
	switch modeStr {
	case "IN_PROC":
		return ExecutionModeInProcess, true
	case "KUBERNETES":
		return ExecutionModeKubernetes, true
	default:
		return ExecutionModeInvalid, false
	}
}
func MatchExecutionMode ( modeStr string ) ( ExecutionMode , bool ) { modeStr = strings . ToUpper ( modeStr ) switch modeStr { case " " : return ExecutionModeInProcess , true case " " : return ExecutionModeKubernetes , true default : return ExecutionModeInvalid , false } }
MatchExecutionMode returns the mode based on the string represetantion of it
and a boolean if that mode is exist or not, the mode will always return in uppercase,
the input argument is not case sensitive.
MatchExecutionMode returns the mode based on the string represetantion of it and a boolean if that mode is exist or not the mode will always return in uppercase the input argument is not case sensitive .
// TODO: add it back once connect mode is added back /*case "CONNECT":
	return ExecutionModeConnect, true*/