move plugins from from ccsdk to dcaegen2
[dcaegen2/platform/plugins.git] / helm / helm-type.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     package_version: 4.1.0
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: json object string
55         type: string
56         default: ''
57       config_url:
58         description: config file url, supports multiple urls seperated by commas 
59         type: string
60         default: ''
61       config_format:
62         description: config file format - json or yaml
63         type: string
64         default: 'yaml'
65       runtime_config:
66         default: ''
67         description: json object string, runtime config generate from other nodes.
68       config_set:
69         default: ''
70         description: json object string for supporting helm --set option.
71       tls_enable:
72         description: enable helm TSL
73         type: boolean
74         default: false
75       ca:
76         description: value of ca.pem
77         type: string
78         default: ''
79       cert:
80         description:  value of cert.pem
81         type: string
82         default: ''
83       key:
84         description:  value of key.pem
85         type: string
86         default: ''
87       stable_repo_url:
88         description:   URL for stable repository
89         type: string
90         default: 'https://kubernetes-charts.storage.googleapis.com'
91       repo_user:
92         description:  chart repo user name  
93         type: string
94         default: ''
95       repo_user_password:
96         description:  chart repo user password 
97         type: string
98         default: ''
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         status: helm-plugin.plugin.tasks.status
108
109
110 workflows:
111   upgrade:
112     mapping: helm-plugin.plugin.workflows.upgrade
113     parameters:
114       node_instance_id:
115         description: The id of the node-instance that you want to modify.
116       config_set:
117         description: set option string 
118         default: ''
119       config:
120         description: json object string
121         default: ''
122       config_url:
123         description: config input url, supports multiple urls seperated by commas 
124         default: ''
125       config_format:
126         description: config input file format
127         default: 'yaml'
128       chart_version:
129         description: chart version
130       chart_repo_url:
131         description: chart repo url
132       repo_user:
133         description: chart repo user name
134         default: ''
135       repo_user_password:
136         description: chart repo user password 
137         default: ''
138   rollback:
139     mapping: helm-plugin.plugin.workflows.rollback
140     parameters:
141       node_instance_id:
142         description: The id of the node-instance that you want to modify.
143       revision:
144         description: Check the node runtime property history, find the revision number you want to rollback to
145   status:
146     mapping: helm-plugin.plugin.workflows.status
147     parameters: