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

Validate that a reference callable exists #354

Open
fnikolai opened this issue Oct 17, 2022 · 1 comment
Open

Validate that a reference callable exists #354

fnikolai opened this issue Oct 17, 2022 · 1 comment

Comments

@fnikolai
Copy link
Member

This is a bit tricky and cannot be done at the admission level, because it requires access to the referenced template.

Instead, it must be done at the scenario level, when all the templates are loaded.

@fnikolai
Copy link
Member Author

This remains tricky because Call may refer to services that are not yet created.
Therefore, we cannot retrieve its spec. It may need some "guessing" to find the type of the service. For example, "masters-1" would be from cluster, whereas "master" would be from service.

    - action: Call
      name: wait-for-3x-replication
      depends: { success: [ import-workload ] }
      call:
        callable: wait-for-3x-replication
        services: [ masters-1 ]

But this can cause configuration is a service is explicitly called "masters-1".

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

1 participant