move plugins from from ccsdk to dcaegen2
[dcaegen2/platform/plugins.git] / helm / plugin / tests / blueprint / plugin / test_plugin.yaml
1 # ============LICENSE_START==========================================
2 # ===================================================================
3 # Copyright (c) 2017-2020 AT&T
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #         http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #============LICENSE_END============================================
17
18 plugins:
19   helm-plugin:
20     executor: central_deployment_agent
21     package_name: helm
22     install: false
23
24 node_types:
25
26   onap.nodes.component:
27     derived_from: cloudify.nodes.Root
28     properties:
29       tiller_ip:
30         description: IP of tiller server
31         type: string
32       tiller_port:
33         default: local
34         description: Port of tiller server
35         type: string
36       chart_repo_url:
37         default: local
38         description: helm chart repo url
39         type: string
40       component_name:
41         description: onap component string
42         type: string
43       chart_version:
44         description: helm chart version
45         type: string
46       config_dir:
47         description: config file dir
48         default: '/opt/manager/resources/'
49         type: string
50       namespace:
51         description: k8s namespace
52         default: onap
53       config:
54         description: String format config file
55         type: string
56         default: ''
57       config_set:
58         description: String format config file
59         type: string
60         default: ''
61       config_url:
62         description: String format config file url
63         type: string
64         default: ''
65       config_format:
66         description: String format config file format
67         type: string
68         default: 'json'
69       runtime_config:
70         default: ''
71         description: String format json object. To save the runtime config generate from other nodes.
72       tls_enable:
73         description: enable helm TSL
74         type: boolean
75         default: false
76       ca:
77         description: value of ca.pem
78         type: string
79         default: ''
80       cert:
81         description:  value of cert.pem
82         type: string
83         default: ''
84       key:
85         description:  value of key.pem
86         type: string
87         default: ''
88       stable_repo_url:
89         description:   URL for stable repository
90         type: string
91         default: 'https://kubernetes-charts.storage.googleapis.com'
92       repo_user:
93         type: string
94         default: ''
95       repo_user_password:
96         type: string
97         default: ''
98
99
100     interfaces:
101       cloudify.interfaces.lifecycle:
102         configure: helm-plugin.plugin.tasks.config
103         start: helm-plugin.plugin.tasks.start
104         stop: helm-plugin.plugin.tasks.stop
105         upgrade: helm-plugin.plugin.tasks.upgrade
106         rollback: helm-plugin.plugin.tasks.rollback
107
108
109 workflows:
110   upgrade:
111     mapping: helm-plugin.plugin.workflows.upgrade
112     parameters:
113       node_instance_id:
114         description: The id of the node-instance that you want to modify.
115       config_set:
116         description: The set option string
117         default: ''
118       config:
119         description: The changes to the new config json
120         default: ''
121       config_url:
122         description: The config input url
123         default: ''
124       config_format:
125         description: The config url input format
126         default: 'json'
127       chart_version:
128         description: chart version
129       chart_repo_url:
130         description: chart repo url
131   rollback:
132     mapping: helm-plugin.plugin.workflows.rollback
133     parameters:
134       node_instance_id:
135         description: The id of the node-instance that you want to modify.
136         default: 'node_instance_id'
137       revision:
138         description: Check the node runtime property history, find the revision number you want to rollback to
139         default: 1