Implement rest of Apply operation in DCM 06/113206/1
authorIgor D.C <igor.duarte.cardoso@intel.com>
Sat, 26 Sep 2020 02:19:38 +0000 (02:19 +0000)
committerIgor D.C <igor.duarte.cardoso@intel.com>
Sat, 26 Sep 2020 02:40:02 +0000 (02:40 +0000)
commit582abd0500190c0a7d66c0e7cf92466ed0ec5d88
tree8c61719261fec34a1f2f3b29e3f33cbc9809a33b
parent8c0cc1278cc4d84863b076b2014b9bc9d8805218
Implement rest of Apply operation in DCM

"Rest of" meaning the Apply operation now effectively
instantiates logical cloud resources on K8s cluster.

More specifically, this commit now enables:
- DCM calling rsync over gRPC on apply
- The following K8s resources are now being created per cluster:
  - namespace, csr, resourcequotas, roles, rolebindings
- Tested-working for multiple clusters simultaneously
- Generating and storing logical cloud user private key in MongoDB

This commit doesn't include any logic to request
or retrieve CSR approvals and signed user certificates.

Issue-ID: MULTICLOUD-1143
Change-Id: I92c4270678d05a5cb531791cef199a7dd79403d3
Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
src/dcm/pkg/module/apply.go