Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit f1bd184

Browse files
Merge pull request #39 from stack-spot/feature/plugins-requires-connection-interfaces
Update plugin.yaml templates
2 parents 6137b8b + 42a1493 commit f1bd184

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

stackspot_store/templates/plugin/v1/app/templates/plugin.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ spec:
1919
{% endif %}
2020
technologies: # Ref: https://docs.stackspot.com/docs/create-stacks/yaml-files/yaml/#technologies
2121
- Api
22+
{% if connection_interface_types %}
2223
requires:
2324
connection-interface:
24-
- ecs-task-conn
25+
{% for connection_interface_type in connection_interface_types %}
26+
- {{connection_interface_type}}
27+
{% endfor %}
28+
{% endif %}
2529
inputs:
2630
- label: Type name of your resource
2731
name: resource

stackspot_store/templates/plugin/v1/infra/templates/plugin.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ spec:
2424
{% for connection_interface in connection_interfaces %}
2525
- {{connection_interface}}
2626
{% endfor %}
27+
{% if connection_interface_types %}
28+
requires:
29+
connection-interface:
30+
{% for connection_interface_type in connection_interface_types %}
31+
- {{connection_interface_type}}
32+
{% endfor %}
33+
{% endif %}
2734
inputs:
2835
- label: Type name of your resource
2936
name: resource

0 commit comments

Comments
 (0)