← Prev in month ← Prev in thread
Next in thread → Next in month →

Artifact property assingments

From
Nemeth, Denes (Nokia - HU/Budapest) <>
Date
2021-01-26T08:37:40+00:00
ID
Thread
Artifact property assingments
Dear Tosca Community

 

Can you help us to clarify artifact property assignments in the Tosca specs 1.3 / 2.0 draft.

 

In both places the spec states that:

properties

no

map of 

property

assignments

The optional map of property assignments associated with the artifact.

 

It gives the following example 

 

artifacts:

  sw_image:

    description: Image for virtual machine

    type: tosca.artifacts.Deployment.Image.VM

    file: http://10.10.86.141/images/Juniper_vSRX_15.1x49_D80_preconfigured.qcow2

    checksum: ba411cafee2f0f702572369da0b765e2

    version: 3.2

    checksum_algorithm: MD5

   
properties:

      name: vSRX

      container_format: BARE

      disk_format: QCOW2

      min_disk: 1 GB

      size: 649 MB

 

however

 

tosca.artifacts.Deployment:

  derived_from: tosca.artifacts.Root

  description: TOSCA base type for deployment artifacts

tosca.artifacts.Deployment.Image:

  derived_from: tosca.artifacts.Deployment

tosca.artifacts.Deployment.Image.VM:

  derived_from: tosca.artifacts.Deployment.Image

  description: Virtual Machine (VM) Image

#no property definitions (or in any of the parents)

 

So the question would be is it allowed to assign properties that have not been defined.

 

Maybe it would be nice to add one of the following statements in the 2.0 specs.

Only defined properties shall be assigned. (& fix example)

Even non defined properties may be assigned

 

Cheers Denes
← Prev in month ← Prev in thread
Next in thread → Next in month →