argo event
This commit is contained in:
@@ -172,6 +172,7 @@ const (
|
||||
PB_ADMIRALTY_CONFIG
|
||||
PB_MINIO_CONFIG
|
||||
PB_CLOSE_SEARCH
|
||||
PB_ARGO_KUBE_EVENT
|
||||
NONE
|
||||
)
|
||||
|
||||
@@ -199,13 +200,15 @@ func GetActionString(ss string) PubSubAction {
|
||||
return PB_MINIO_CONFIG
|
||||
case "close_search":
|
||||
return PB_CLOSE_SEARCH
|
||||
case "argo_kube_event":
|
||||
return PB_ARGO_KUBE_EVENT
|
||||
default:
|
||||
return NONE
|
||||
}
|
||||
}
|
||||
|
||||
var path = []string{"search", "search_response", "create", "update", "delete", "planner", "close_planner",
|
||||
"considers", "admiralty_config", "minio_config", "close_search"}
|
||||
"considers", "admiralty_config", "minio_config", "close_search", "argo_kube_event"}
|
||||
|
||||
func (m PubSubAction) String() string {
|
||||
return strings.ToUpper(path[m])
|
||||
|
||||
Reference in New Issue
Block a user