Request CSR approvals via /subresource level 07/113207/2
authorIgor D.C <igor.duarte.cardoso@intel.com>
Sat, 26 Sep 2020 02:54:02 +0000 (02:54 +0000)
committerIgor D.C <igor.duarte.cardoso@intel.com>
Mon, 28 Sep 2020 23:29:09 +0000 (23:29 +0000)
commit5a8a4cc2fa457c334ea8254762725d70371cf56a
tree1b8e4925155274c27f245d7a09bf2a766f388db5
parent3ce5034769be46569c404c38ba05ed27164cbd0f
Request CSR approvals via /subresource level

Make use of the new /subresource level (under a resource) to
request rsync to process approvals (a K8s subresource) for CSRs.

Generic usage of instructions (order, dependency) for consistency.

This also introduces a 'subresources' package in 'appcontext' with
the first member being the approval subresource. Since subresources
aren't necessarily created with yaml, this package will allow
developers to specify what should be the "interface" in appcontext
for each type of subresource when the different services need to
exchange this data (e.g. DCM and rsync).

Issue-ID: MULTICLOUD-1143
Change-Id: I8c85b4ee8c5654036a1c7ebb39d111ba4518b468
Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
src/dcm/go.mod
src/dcm/pkg/module/apply.go
src/orchestrator/pkg/appcontext/subresources/approval.go [new file with mode: 0644]