f5eb6233fc518cac3156824046652025fa8ee927
[policy/clamp.git] /
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 Nordix Foundation.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18 tosca_definitions_version: tosca_simple_yaml_1_3
19 data_types:
20   onap.datatypes.ToscaConceptIdentifier:
21     derived_from: tosca.datatypes.Root
22     properties:
23       name:
24         type: string
25         required: true
26       version:
27         type: string
28         required: true
29 node_types:
30   org.onap.policy.clamp.acm.Participant:
31     version: 1.0.1
32     derived_from: tosca.nodetypes.Root
33     properties:
34       provider:
35         type: string
36         requred: false
37   org.onap.policy.clamp.acm.AutomationCompositionElement:
38     version: 1.0.1
39     derived_from: tosca.nodetypes.Root
40     properties:
41       provider:
42         type: string
43         requred: false
44       participantType:
45         type: onap.datatypes.ToscaConceptIdentifier
46         requred: true
47       startPhase:
48         type: integer
49         required: false
50         constraints:
51         - greater-or-equal: 0
52         metadata:
53             common: true
54         description: A value indicating the start phase in which this automation composition element will be started,
55                      the first start phase is zero. Automation Composition Elements are started in their start_phase
56                      order and stopped in reverse start phase order. Automation Composition Elements with the same start
57                      phase are started and stopped simultaneously
58   org.onap.policy.clamp.acm.AutomationComposition:
59     version: 1.0.1
60     derived_from: tosca.nodetypes.Root
61     properties:
62       provider:
63         type: string
64         requred: false
65       elements:
66         type: list
67         required: true
68         entry_schema:
69           type: onap.datatypes.ToscaConceptIdentifier
70   org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement:
71     version: 1.0.1
72     derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
73     properties:
74       chart:
75         type: string
76         required: true
77       configs:
78         type: list
79         required: false
80       requirements:
81         type: string
82         requred: false
83       templates:
84         type: list
85         required: false
86         entry_schema:
87       values:
88         type: string
89         requred: true
90 topology_template:
91   node_templates:
92     org.onap.k8s.acm.K8SAutomationCompositionParticipant:
93       version: 2.3.4
94       type: org.onap.policy.clamp.acm.Participant
95       type_version: 1.0.1
96       description: Participant for K8S
97       properties:
98         provider: ONAP
99
100     org.onap.domain.database.HelloWorld_K8SMicroserviceAutomationCompositionElement:
101       # Chart from any chart repository configured on helm client.
102       version: 1.2.3
103       type: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement
104       type_version: 1.0.0
105       description: Automation composition element for the K8S microservice for Hello World
106       properties:
107         provider: ONAP
108         participantType:
109           name: org.onap.k8s.acm.K8SAutomationCompositionParticipant
110           version: 2.3.4
111         startPhase: 2
112         uninitializedToPassiveTimeout: 180
113         podStatusCheckInterval: 30
114         chart:
115           chartId:
116             name: hello
117             version: 0.1.0
118           releaseName: helloworld
119           namespace: onap
120           repository: chartMuseum
121
122     org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement:
123       # Chart from local file system
124       version: 1.2.3
125       type: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement
126       type_version: 1.0.0
127       description: Automation composition element for the K8S microservice for PMSH
128       properties:
129         provider: ONAP
130         participantType:
131           name: org.onap.k8s.acm.K8SAutomationCompositionParticipant
132           version: 2.3.4
133         startPhase: 2
134         uninitializedToPassiveTimeout: 180
135         podStatusCheckInterval: 30
136         chart:
137           chartId:
138             name: dcae-pmsh
139             version: 8.0.0
140           namespace: onap
141           releaseName: pmshms
142           overrideParams:
143             global.masterPassword: test
144
145     org.onap.domain.database.Local_K8SMicroserviceAutomationCompositionElement:
146       # Chart installation without passing repository name
147       version: 1.2.3
148       type: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement
149       type_version: 1.0.0
150       description: Automation composition element for the K8S microservice for local chart
151       properties:
152         provider: ONAP
153         participantType:
154           name: org.onap.k8s.acm.K8SAutomationCompositionParticipant
155           version: 2.3.4
156         startPhase: 2
157         uninitializedToPassiveTimeout: 180
158         podStatusCheckInterval: 30
159         chart:
160           chartId:
161             name: nginx-ingress
162             version: 0.9.1
163           releaseName: nginxms
164           namespace: onap
165
166     org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition:
167       version: 1.2.3
168       type: org.onap.policy.clamp.acm.AutomationComposition
169       type_version: 1.0.0
170       description: Automation composition for Hello World
171       properties:
172         provider: ONAP
173         elements:
174           - name: org.onap.domain.database.HelloWorld_K8SMicroserviceAutomationCompositionElement
175             version: 1.2.3
176           - name: org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement
177             version: 1.2.3
178           - name: org.onap.domain.database.Local_K8SMicroserviceAutomationCompositionElement
179             version: 1.2.3