Implement Route CR controller 54/4054/3
authorLe Yao <le.yao@intel.com>
Fri, 15 Jan 2021 07:32:23 +0000 (07:32 +0000)
committerLe Yao <le.yao@intel.com>
Fri, 29 Jan 2021 02:20:44 +0000 (02:20 +0000)
commit722b64b911187de95a96edb87255226c3751fe0d
tree8e9a1d703fcd914267c9e05a1d8eea01c6d88003
parentcf777c2e53d59a06d1a459733090c4919dfd13ff
Implement Route CR controller

The Route CR controller handles the Route resource and call CNF Route
RESTful API to add/update/delete/get the route rule.

Signed-off-by: Le Yao <le.yao@intel.com>
Change-Id: I95871e1e95ccacf5790697d2e5105448f630aac2
16 files changed:
platform/crd-ctrlr/examples/sdewan-controller.yaml
platform/crd-ctrlr/src/PROJECT
platform/crd-ctrlr/src/api/v1alpha1/cnfroute_types.go [new file with mode: 0644]
platform/crd-ctrlr/src/api/v1alpha1/zz_generated.deepcopy.go
platform/crd-ctrlr/src/config/crd/bases/batch.sdewan.akraino.org_cnfroutes.yaml [new file with mode: 0644]
platform/crd-ctrlr/src/config/crd/kustomization.yaml
platform/crd-ctrlr/src/config/crd/patches/cainjection_in_cnfroutes.yaml [new file with mode: 0644]
platform/crd-ctrlr/src/config/crd/patches/webhook_in_cnfroutes.yaml [new file with mode: 0644]
platform/crd-ctrlr/src/config/rbac/cnfroute_editor_role.yaml [new file with mode: 0644]
platform/crd-ctrlr/src/config/rbac/cnfroute_viewer_role.yaml [new file with mode: 0644]
platform/crd-ctrlr/src/config/rbac/role.yaml
platform/crd-ctrlr/src/config/samples/batch_v1alpha1_cnfroute.yaml [new file with mode: 0644]
platform/crd-ctrlr/src/controllers/cnfroute_controller.go [new file with mode: 0644]
platform/crd-ctrlr/src/controllers/suite_test.go
platform/crd-ctrlr/src/main.go
platform/crd-ctrlr/src/openwrt/route.go [new file with mode: 0644]