argo event

This commit is contained in:
mr
2026-03-18 14:46:35 +01:00
parent 1a37a1b4aa
commit c66fbc809e
2 changed files with 6 additions and 4 deletions

View File

@@ -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])