CentaurusInfra / fornax

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

update sync controller for mission CRD #4

Closed chenqianfzh closed 3 years ago

chenqianfzh commented 3 years ago

This PR fixes the sync controller to make it work with the CRD of missions.edgeclusters.kubeedge.io.

Before this change, the sync controller kept complaining unable to get the object of missions deployed and it did not pick up the change in mission objects.

Verficiation

With this PR, the following verfication succeeded:

  1. Start a cloudcore and an edgecore in edgecluster mode.
  2. in the cloud cluster, deploy a mission.
  3. Turn off the cloudcore and edgecore.
  4. Update the mission ( in the test, I updated the deployment replica number in the mission content from 3 to 10).
  5. Restart the cloudcore and the edgecore in edgecluster mode.
  6. Verified: the mission in the edge cluster picked up the updated version of the mission, the deployment deployed by the missions has a replica number of 10 now.