Added new route to retrieve the host's kubeconfig with the execution's SA token

This commit is contained in:
pb
2025-02-28 14:07:45 +01:00
parent 7b27945493
commit f75499d827
4 changed files with 183 additions and 5 deletions

View File

@@ -9,11 +9,9 @@ workflow --> locdc : POST /booking/ {booking object}
locdc --> locdc : create Namespace + ServiceAccount
monitord --> monitord : retrieves a Workflow to execute
monitord --> monitord : workflow needs repartited execution
' monitord --> locdc : POST /admiralty/setup/:executions_id
monitord --> rocdc : POST /????? (route that use the same \nmethods as /booking/ to create NS & SA)
monitord --> rocdc : POST /admiralty/source
rocdc --> rocdc : create token for SA in NS
rocdc --> rocdc : edit
monitord --> rodc : GET /admiralty/token/:execution_id
rocdc -> monitord : base64 encoded edited kubeconfig with token (**how to make it secure** ???)
monitord --> locdc : POST /admiralty/secret/:execution_id
monitord --> locdc : POST /admiralty/target/:execution_id