Add StateInfo structure synced resources 67/110467/6
authorEric Multanen <eric.w.multanen@intel.com>
Wed, 22 Jul 2020 21:11:05 +0000 (14:11 -0700)
committerEric Multanen <eric.w.multanen@intel.com>
Mon, 3 Aug 2020 22:40:09 +0000 (15:40 -0700)
commitb2c23afb03b393b05fe38dd7c54b1de3c42deaf3
tree5e845ad676a62e4bde17a6c4a846544164b0ad40
parentd6f900721c81a2c03cb1a21a3d2064e9a69fc4b7
Add StateInfo structure synced resources

Add a StateInfo structure to the Cluster and
Deployment-Intent-Group resources to keep track of
the lifecycle state of these resources.  Moved the
appcontext id that was being kept into this structure
as well.  Enabled the approve state (and API) for
the deployment intent group.

Issue-ID: MULTICLOUD-1042
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
Change-Id: I36602d8a0658d9d6d37b8799f9a372a7d1042496
20 files changed:
docs/emco_apis.yaml
kud/tests/m3db-operator-test.sh
kud/tests/plugin_collection_v2.sh
kud/tests/prometheus-test.sh
kud/tests/sanity-check-for-v2.sh
kud/tests/vfw-test.sh
src/clm/api/clusterhandler_test.go
src/clm/go.mod
src/clm/pkg/cluster/cluster.go
src/ncm/pkg/module/types/module_definitions.go
src/ncm/pkg/networkintents/network.go
src/ncm/pkg/networkintents/providernet.go
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/deployment_intent_groups.go
src/orchestrator/pkg/module/instantiation.go
src/orchestrator/pkg/state/state_helper.go [new file with mode: 0644]
src/orchestrator/pkg/state/types.go [new file with mode: 0644]