Skip to content

Commit

Permalink
Merge pull request #102 from grycap/devel
Browse files Browse the repository at this point in the history
Overriding the default num_cpus property to allow float values
  • Loading branch information
micafer authored Feb 20, 2024
2 parents 3bb33fc + ce8946f commit dbde461
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions custom_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,46 @@ capability_types:
entry_schema:
type: tosca.datatypes.Credential

tosca.capabilities.Container.Docker:
derived_from: tosca.capabilities.Container
properties:
# Overriding the default num_cpus property to allow float values
num_cpus:
type: float
required: false
constraints:
- greater_than: 0
version:
type: list
required: false
entry_schema:
type: version
publish_all:
type: boolean
default: false
required: false
publish_ports:
type: list
entry_schema:
type: tosca.datatypes.network.PortSpec
required: false
expose_ports:
type: list
entry_schema:
type: tosca.datatypes.network.PortSpec
required: false
volumes:
type: list
entry_schema:
type: string
required: false
host_id:
type: string
required: false
volume_id:
type: string
required: false

artifact_types:

tosca.artifacts.Implementation.YAML:
Expand Down

0 comments on commit dbde461

Please sign in to comment.