Adds composite app status update and query 57/109757/14
authorEric Multanen <eric.w.multanen@intel.com>
Thu, 2 Jul 2020 06:30:49 +0000 (23:30 -0700)
committerEric Multanen <eric.w.multanen@intel.com>
Wed, 8 Jul 2020 20:36:34 +0000 (13:36 -0700)
commite06b947b03c3fcce2c954feb68890a519c7740c3
tree5617b570ea85bf07dd76c6410975059acc23cc70
parenta43096cbdca3fdabeda3d404bedadd7a7272a3c2
Adds composite app status update and query

This patch provides the basic framework for supporting
monitoring of composite application resources in clusters.

1. Updates to the monitor files for use with v2.
2. Invokes the Watcher process per cluster/app when the
   app is instantiated.
3. Adds a ResourceBundleState CR resource to the cluster/app
   so that monitor will be able to update status to it.
4. Watcher updates appropriate appcontext status object
   when updates are made in clusters by monitor
5. Update appcontext library to define a status handle
   and object at the app/cluster level
6. Labels resources with an appropriate tracking label
   to coordinate with the ResourceBundleState CR

Issue-ID: MULTICLOUD-1042
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
Change-Id: If007c1fd86ca7a65bb941d1776cfd2d3afed766b
26 files changed:
deployments/kubernetes/cleanup-emco.sh [moved from kud/tests/cleanup-composite-vfw.sh with 80% similarity, mode: 0755]
kud/tests/README-composite-vfw.txt
kud/tests/vfw-test-clean-cluster.sh [changed mode: 0644->0755]
kud/tests/vfw-test.sh
src/monitor/build/Dockerfile
src/monitor/deploy/cluster_role.yaml [new file with mode: 0644]
src/monitor/deploy/clusterrole_binding.yaml [new file with mode: 0644]
src/monitor/deploy/monitor-cleanup.sh [new file with mode: 0755]
src/monitor/deploy/monitor-deploy.sh [new file with mode: 0755]
src/monitor/deploy/operator.yaml
src/monitor/deploy/role.yaml
src/monitor/go.mod
src/monitor/pkg/apis/k8splugin/v1alpha1/types.go
src/orchestrator/api/api.go
src/orchestrator/api/instantiation_handler.go
src/orchestrator/go.mod
src/orchestrator/pkg/appcontext/appcontext.go
src/orchestrator/pkg/appcontext/appcontext_test.go
src/orchestrator/pkg/module/deployment_intent_groups.go
src/orchestrator/pkg/module/instantiation.go
src/orchestrator/pkg/module/instantiation_appcontext_helper.go
src/orchestrator/pkg/rtcontext/rtcontext.go
src/rsync/pkg/connector/connector.go
src/rsync/pkg/context/context.go
src/rsync/pkg/resource/resource.go
src/rsync/pkg/status/status.go