69886cdb147d76b34b200614d223ae53496013d9
[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.controlloop.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.controlloop.ControlLoopElement:
38     version: 1.0.1
39     derived_from: tosca.nodetypes.Root
40     properties:
41       provider:
42         type: string
43         requred: false
44       participant_id:
45         type: onap.datatypes.ToscaConceptIdentifier
46         requred: true
47   org.onap.policy.clamp.controlloop.ControlLoop:
48     version: 1.0.1
49     derived_from: tosca.nodetypes.Root
50     properties:
51       provider:
52         type: string
53         requred: false
54       elements:
55         type: list
56         required: true
57         entry_schema:
58           type: onap.datatypes.ToscaConceptIdentifier
59   org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement:
60     version: 1.0.1
61     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
62     properties:
63       chart:
64         type: string
65         required: true
66       configs:
67         type: list
68         required: false
69       requirements:
70         type: string
71         requred: false
72       templates:
73         type: list
74         required: false
75         entry_schema:
76       values:
77         type: string
78         requred: true
79 topology_template:
80   node_templates:
81     org.onap.k8s.controlloop.K8SControlLoopParticipant:
82       version: 2.3.4
83       type: org.onap.policy.clamp.controlloop.Participant
84       type_version: 1.0.1
85       description: Participant for K8S
86       properties:
87         provider: ONAP
88
89     org.onap.domain.database.HelloWorld_K8SMicroserviceControlLoopElement:
90       # Chart from any chart repository configured on helm client.
91       version: 1.2.3
92       type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement
93       type_version: 1.0.0
94       description: Control loop element for the K8S microservice for Hello World
95       properties:
96         provider: ONAP
97         participant_id:
98           name: org.onap.k8s.controlloop.K8SControlLoopParticipant
99           version: 2.3.4
100         uninitializedToPassiveTimeout: 180
101         podStatusCheckInterval: 30
102         chart:
103           chartId:
104             name: hello
105             version: 0.1.0
106           releaseName: helloworld
107           namespace: onap
108           repository: chartMuseum
109
110     org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement:
111       # Chart from local file system
112       version: 1.2.3
113       type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement
114       type_version: 1.0.0
115       description: Control loop element for the K8S microservice for PMSH
116       properties:
117         provider: ONAP
118         participant_id:
119           name: org.onap.k8s.controlloop.K8SControlLoopParticipant
120           version: 2.3.4
121         uninitializedToPassiveTimeout: 180
122         podStatusCheckInterval: 30
123         chart:
124           chartId:
125             name: dcae-pmsh
126             version: 8.0.0
127           namespace: onap
128           releaseName: pmshms
129           overrideParams:
130             global.masterPassword: test
131
132     org.onap.domain.database.Local_K8SMicroserviceControlLoopElement:
133       # Chart installation without passing repository name
134       version: 1.2.3
135       type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement
136       type_version: 1.0.0
137       description: Control loop element for the K8S microservice for local chart
138       properties:
139         provider: ONAP
140         participant_id:
141           name: org.onap.k8s.controlloop.K8SControlLoopParticipant
142           version: 2.3.4
143         uninitializedToPassiveTimeout: 180
144         podStatusCheckInterval: 30
145         chart:
146           chartId:
147             name: nginx-ingress
148             version: 0.9.1
149           releaseName: nginxms
150           namespace: onap
151
152     org.onap.domain.sample.GenericK8s_ControlLoopDefinition:
153       version: 1.2.3
154       type: org.onap.policy.clamp.controlloop.ControlLoop
155       type_version: 1.0.0
156       description: Control loop for Hello World
157       properties:
158         provider: ONAP
159         elements:
160           - name: org.onap.domain.database.HelloWorld_K8SMicroserviceControlLoopElement
161             version: 1.2.3
162           - name: org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement
163             version: 1.2.3
164           - name: org.onap.domain.database.Local_K8SMicroserviceControlLoopElement
165             version: 1.2.3