3212b5ad2329baa81a7fbcc903dabef564037ee1
[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         chart:
101           release_name: helloworld
102           chart_name: hello
103           version: 0.1.0
104           repository: chartMuseum
105           namespace: onap
106
107     org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement:
108       # Chart from local file system
109       version: 1.2.3
110       type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement
111       type_version: 1.0.0
112       description: Control loop element for the K8S microservice for PMSH
113       properties:
114         provider: ONAP
115         participant_id:
116           name: org.onap.k8s.controlloop.K8SControlLoopParticipant
117           version: 2.3.4
118         chart:
119           release_name: pmshmicroservice
120           chart_name: test
121           version: 1.0.1
122           namespace: onap
123
124     org.onap.domain.database.Local_K8SMicroserviceControlLoopElement:
125       # Chart installation without passing repository name
126       version: 1.2.3
127       type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement
128       type_version: 1.0.0
129       description: Control loop element for the K8S microservice for local chart
130       properties:
131         provider: ONAP
132         participant_id:
133           name: org.onap.k8s.controlloop.K8SControlLoopParticipant
134           version: 2.3.4
135         chart:
136           release_name: nginxms
137           chart_name: nginx-ingress
138           version: 0.9.1
139           namespace: onap
140
141     org.onap.domain.sample.GenericK8s_ControlLoopDefinition:
142       version: 1.2.3
143       type: org.onap.policy.clamp.controlloop.ControlLoop
144       type_version: 1.0.0
145       description: Control loop for Hello World
146       properties:
147         provider: ONAP
148         elements:
149           - name: org.onap.domain.database.HelloWorld_K8SMicroserviceControlLoopElement
150             version: 1.2.3
151           - name: org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement
152             version: 1.2.3
153           - name: org.onap.domain.database.Local_K8SMicroserviceControlLoopElement
154             version: 1.2.3