ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tliron <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #143: ARIA-254 Create multiple nodes per te...
Date Wed, 05 Jul 2017 20:48:51 GMT
Github user tliron commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/143#discussion_r125753620
  
    --- Diff: extensions/aria_extension_tosca/profiles/tosca-simple-1.0/capabilities.yaml
---
    @@ -132,6 +132,7 @@ capability_types:
           specification: tosca-simple-1.0
           specification_section: 5.4.10
           specification_url: 'http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/cos01/TOSCA-Simple-Profile-YAML-v1.0-cos01.html#DEFN_TYPE_CAPABILITIES_SCALABLE'
    +      role: scaling
    --- End diff --
    
    The `role` meta data is the way to specify special behavior for types in ARIA. This is
much safer than checking if name == `aria.Scaling`, or even if it inherits from that. Roles
are inherited with the type, so subtypes will have the same role (unless they override it).
We use this in a few cases, for example there is `host` role for Compute and for HostedOn
relationships.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message