Enhance the status query API 01/111501/4
authorEric Multanen <eric.w.multanen@intel.com>
Wed, 12 Aug 2020 22:33:12 +0000 (15:33 -0700)
committerEric Multanen <eric.w.multanen@intel.com>
Mon, 31 Aug 2020 22:50:06 +0000 (15:50 -0700)
commit645c6a331cd00043fcf9f567f5f261a9db070918
tree3298b48aca4d93d22680960bd2a27290799b5732
parentce99856834a225f6f68b6eda725ae7122a2f8185
Enhance the status query API

This patch enhances the status query API.
- The ResourceBundleState CRD is modified to just use the
  k8s Pod structure instead of a customized struct.
- Status queries can either present results showing
  the rsync status of the composite app and resources
  or from information received from the cluster via
  the ResourceBundleState CR
- Query parameters are provided to the API call to
  customize the query and response
- Support for querying status of cluster network
  intents is added

Issue-ID: MULTICLOUD-1042
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
Change-Id: Icca4cdd901e2f2b446414fade256fc24d87594cd
26 files changed:
docs/emco_apis.yaml
src/dcm/go.mod
src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_crd.yaml
src/monitor/pkg/apis/k8splugin/v1alpha1/types.go
src/monitor/pkg/apis/k8splugin/v1alpha1/zz_generated.deepcopy.go
src/monitor/pkg/controller/resourcebundlestate/configMap_controller.go
src/monitor/pkg/controller/resourcebundlestate/controller.go
src/monitor/pkg/controller/resourcebundlestate/daemonSet_controller.go
src/monitor/pkg/controller/resourcebundlestate/deployment_controller.go
src/monitor/pkg/controller/resourcebundlestate/ingress_controller.go
src/monitor/pkg/controller/resourcebundlestate/job_controller.go
src/monitor/pkg/controller/resourcebundlestate/pod_controller.go
src/monitor/pkg/controller/resourcebundlestate/secret_controller.go
src/monitor/pkg/controller/resourcebundlestate/service_controller.go
src/monitor/pkg/controller/resourcebundlestate/statefulSet_controller.go
src/ncm/api/api.go
src/ncm/api/schedulerhandler.go
src/ncm/go.mod
src/ncm/pkg/scheduler/scheduler.go
src/orchestrator/api/api.go
src/orchestrator/api/instantiation_handler.go
src/orchestrator/go.mod
src/orchestrator/pkg/module/instantiation.go
src/orchestrator/pkg/state/types.go
src/orchestrator/pkg/status/status_helper.go [new file with mode: 0644]
src/orchestrator/pkg/status/types.go [new file with mode: 0644]