Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding the default num_cpus property to allow float values #102

Merged
merged 3 commits into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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