Fix sdewan reconcile trigger 88/2288/1
authorchengli3 <cheng1.li@intel.com>
Fri, 6 Mar 2020 08:38:06 +0000 (08:38 +0000)
committerchengli3 <cheng1.li@intel.com>
Fri, 6 Mar 2020 08:38:06 +0000 (08:38 +0000)
commit24d28f19e64cadb6fa587bb7da83b9ba68ca4016
tree8dd0915b1641f860152f0abc0e924efb8ac8c2cb
parent8618003ba1a5d77aba5befe3dd92d1151f2cf122
Fix sdewan reconcile trigger

When mwan3Conf changes, the mwan3Conf controller update the sdewan
instance status to trigger the sdewan reconcile. Before this patch, we
update only the status field `IsApplied=false`. It could happen that the
field `IsApplied` was already false, if this is the case sdewan
reconcile will not be triggered. Because the sdewan CR is not changed.
This patch is to add another field in sdewan status, to make sure sdewan
reconcile is triggered once the mwan3Conf changes.

Signed-off-by: chengli3 <cheng1.li@intel.com>
Change-Id: I8f01733c373326b9167342118fd166834a7a8c45
api/v1alpha1/sdewan_types.go
config/crd/bases/batch.sdewan.akraino.org_sdewans.yaml
controllers/mwan3conf_controller.go