Fission MQT integration with keda (#1657)
Fission MQT integration based on Keda with Kafka connector
This commit is contained in:
@@ -315,3 +315,18 @@ func GetSpecDir(input cli.Input) string {
|
||||
}
|
||||
return specDir
|
||||
}
|
||||
|
||||
// UpdateMapFromStringSlice parses key, val from "key=val" string array and updates passed map
|
||||
func UpdateMapFromStringSlice(dataMap *map[string]string, params []string) bool {
|
||||
updated := false
|
||||
for _, m := range params {
|
||||
keyValue := strings.SplitN(m, "=", 2)
|
||||
if len(keyValue) == 2 {
|
||||
key := keyValue[0]
|
||||
value := keyValue[1]
|
||||
(*dataMap)[key] = value
|
||||
updated = true
|
||||
}
|
||||
}
|
||||
return updated
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user