CentaurusInfra / fornax

Fornax for autonomous and flexible edge computing
Apache License 2.0
8 stars 16 forks source link

Cascade mission status #6

Closed chenqianfzh closed 3 years ago

chenqianfzh commented 3 years ago

This PR implements the idea about extending the mission CRD to include the section of status to show how mission content is running in the cascading edge clusters. The idea is explained in slides https://github.com/pdgetrf/ArktosEdge/blob/main/slides/extend_mission.pptx.

Verification:

I set up a cloud cluster with two cascading edge clusters to verify.

1). When the mission matches and the content is to deploy a deployment and the status check command is empty:

image

The mission status shows the "Kubectl get [mission_content_resource]" of the cascading edge clusters as expected. And the status is update automatically.

2). When the mission does not match

image

3). when the customer specify its own status check command

Here I set the status check command as follows, to read the deployment status message:

 kubectl get deployment deployment-to-all --kubeconfig /root/k8s.kubeconfig -o json | jq .status.conditions[0].message

image