yorc
yorc copied to clipboard
Support TOSCA 1.3 to separate capability Compute from capability Container
Pull Request description
This PR supports the TOSCA profile v1.3 which introduces the new capability tosca.capabilities.Compute
derived from tosca.capabilities.Container
as described in GH-589
Description of the change
What I did
- Add new capability type
tosca.capabilities.Compute
indata / tosca / normative-types.yml
. - Adapt tests to use the new capability type as follows:
- Update all nodes hosted on a
tosca.nodes.Compute
andtosca.nodes.WebServer
node to have the new requirement from typetosca.capabilities.Compute
(instead oftosca.capabilities.Container
). - For other nodes, they continue to have the requirement
tosca.capabilities.Container
as they are hosted on atosca.nodes.SoftwareComponent
.
How to verify it
- Run unit test: OK
- Run real test:
- Update the repo
tosca-normative-types
from a4c with the PR https://github.com/alien4cloud/tosca-normative-types/pull/2 to add the new capability typetosca.capabilities.Compute
. - Use a4c to boot a Compute node with a software component on it.
Description for the changelog
Support TOSCA 1.3 to separate capability Compute from capability Container
Applicable Issues
No issues if you have a new setup. But for existing ones, upgrade existing tosca types in a4c is difficult and I do not know how to do it properly.