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

imports missing at DeploymentOptions/TeaStore-managed-k8s-self-managed-nodes.yaml #5

Open
koppor opened this issue Aug 21, 2024 · 3 comments

Comments

@koppor
Copy link
Contributor

koppor commented Aug 21, 2024

When I try to read DeploymentOptions/TeaStore-managed-k8s-self-managed-nodes.yaml, I see type: cna-modeling.entities.DataAggregate, but I don't find cna-modeling.entities.DataAggregate in the YAML file.

There needs to be an import statement present.

Note: I am using the example at the OASIS TOSCA TC to illustrate the usage of relationshipo templates :) - oasis-tcs/tosca-specs#75

I am also using the example to check the TOSCA validator totosca - Shishqa/totosca#25

@koppor
Copy link
Contributor Author

koppor commented Aug 21, 2024

Maybe, the files at https://github.com/r0light/cna-quality-tool/tree/main/tosca-profiles/v2dot0-profiles/cna-modeling-profile could be "really" defined as TOSCA profile - and then imported using the profile keyword. See https://github.com/oasis-tcs/tosca-specs/blob/working/tosca_2_0/TOSCA-v2.0.md#67-profiles- for details.

@r0light
Copy link
Collaborator

r0light commented Aug 28, 2024

Thanks for the feedback! The TOSCA profile is still in development and to make things easier it is still included in the mentioned repository. But I will work on referencing it properly and eventually move it into a separate repository.

@koppor
Copy link
Contributor Author

koppor commented Sep 4, 2024

But I will work on referencing it properly

I think, in the YAML, it is "only" a profile import (by name) - and it is up to the tool to resovle the profile.

The file https://github.com/r0light/cna-quality-tool/blob/main/tosca-profiles/v2dot0-profiles/cna-modeling-profile/profile.yaml seems to be a valid entry point for that profile definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants