-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
-
False
-
None
-
False
-
---
-
---
-
-
How to run the apiserver snapshot version in RHBA cluster
1. create a SonataFlowProj instance and give the name you want for your resources
apiVersion: sonataflow.org/v1alpha08 kind: SonataFlowProj metadata: name: <workflowprojname>
2. Upload the zip file via curl
# We need the token to authenticate ourselves, given that you have admin credentials or have permissions to create SonataFlowProjInstances in the given namespace TOKEN=$(oc whoami -t) curl -H "Authorization: Bearer $TOKEN" -H "Content-type: application/zip" --data-binary @myproject.zip https://c130-e.us-so uth.containers.cloud.ibm.com:30741/apis/workflowproj.sonataflow.org/v1alpha08/namespaces/<namespace>/sonataflowprojinstances/<workflowprojname>/instantiate
3. You should receive a response like this:
{ "kind": "SonataFlowProjInstance", "apiVersion": "workflowproj.sonataflow.org/v1alpha08", "metadata": { "name": "service", "uid": "c369e550-6e1a-4df9-bd66-0c24c28e3e82", "creationTimestamp": "2023-07-27T11:48:07Z" }, "spec": {}, "status": { "objectsRef": { "Workflow": { "name": "service" }, "Properties": { "name": "service-props" }, "Resources": [ { "name": "01-service-resources" } ] } } }
4. Check if the workflow is running with:
oc get workflow/service -n zanini NAME PROFILE VERSION URL READY REASON service dev http://service-zanini.rhba-0ad6762cc85bcef5745bb684498c2436-0000.us-south.containers.appdomain.cloud/service True
- relates to
-
KOGITO-9417 [SPIKE][Operator] Adopt apiserver-builder to create a new subresource to instantiate a workflowproj
- Pull Request Sent