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:
Start a cloudcore and an edgecore in edgecluster mode.
in the cloud cluster, deploy a mission.
Turn off the cloudcore and edgecore.
Update the mission ( in the test, I updated the deployment replica number in the mission content from 3 to 10).
Restart the cloudcore and the edgecore in edgecluster mode.
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.
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: