-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin_1_4.yaml
435 lines (403 loc) · 13.7 KB
/
plugin_1_4.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
plugins:
helm:
executor: central_deployment_agent
package_name: cloudify-helm-plugin
package_version: '0.4.12'
dsl_definitions:
helm_configuration: &helm_config
helm_config:
type: cloudify.types.helm.HelmConfig
use_external_resource_desc: &use_external_resource_desc >
Indicate whether the resource exists or if Cloudify should create the resource,
true if you are bringing an existing resource, false if you want cloudify to create it.
external_resource: &external_resource
use_external_resource:
description: *use_external_resource_desc
type: boolean
default: false
data_types:
cloudify.types.helm.HelmConfig:
properties:
executable_path:
type: string
default: ''
description: >
Helm binary path.
required: false
cloudify.types.helm.ConfigurationVariant:
description: >
Type representing all Kubernetes API configuration variants.
Each property represents separate supported variant of configuration.
For now, until Helm support "--insecure" one of "blueprint_file_name",
"manager_file_path" and "file_content" must be used.
"api_key" inputs will override kubeconfig data.
properties:
blueprint_file_name:
type: string
required: false
description: >
Name of Kubernetes configuration file attached to blueprint(path)
manager_file_path:
type: string
required: false
description: >
Path to Kubernetes configuration file placed on Cloudify Manager VM.
file_content:
required: false
description: >
Content (YAML) of Kubernetes configuration file.
kubeconfig string or dict are supported.
api_options:
type: cloudify.types.helm.ApiOptions
required: false
description: >
Set of basic properties describing Kubernetes API access.
cloudify.types.helm.ApiOptions:
properties:
host:
type: string
required: false
description: >
HTTP/HTTPS URL to Kubernetes API.
api_key:
type: string
required: false
description: >
Bearer token used for authentication.
ssl_ca_cert:
description: >
Either a path to a file or the content of a CA Cert file.
Path can be relative to the blueprint or path to file on the manager VM.
type: string
required: false
cloudify.types.helm.AuthenticationVariant:
description: >
Type representing all authentication variants.
for different Kubernetes cloud providers.
Each property represents separate supported variant of authentication.
You should choose one variant and fill in only on property.
properties:
gcp_service_account:
type: string
required: false
description: >
(JSON) Content of Google Cloud Platform Service Account file.
aws_access_key_id:
type: string
required: false
description: >
Aws access key id, for authentication with aws.
aws_secret_access_key:
type: string
required: false
description: >
Aws secret access key, for authentication with aws.
aws_default_region:
type: string
required: false
description: >
Aws region, where the cluster deployed.
cloudify.types.helm.ClientConfig:
description: >
Configuration properties for Helm to interact with kubernetes cluster.
if kube_config file not provided then kube_token and kube_api_server should provided.
properties:
configuration:
type: cloudify.types.helm.ConfigurationVariant
description: >
Configuration properties of Kubernetes API.
For now, until Helm support "--insecure" one of 1-3 must be used.
1. Kubernetes config file contained by blueprint archive
2. Kubernetes config file previously uploaded into Cloudify Manager VM
3. Content of Kubernetes config file (YAML).
4. Kubernetes API set of properties
authentication:
type: cloudify.types.helm.AuthenticationVariant
required: false
description: >
Authentication properties of Kubernetes Cloud providers. Optional.
Currently supported providers: Google Cloud Platform.
cloudify.types.helm.ReleaseConfig:
description: >
configuration properties for release node type.
properties:
name:
type: string
description: >
Name of the created release.
required: true
chart:
type: string
description: >
Name of the chart to install.For example: stable/mysql.
required: true
values_file: &values_file
type: string
description: >
Path to values files.
required: false
set_values: &set_values
description: |
List of variables names and values to set. For example:
- name: x
value: y
- name: a
value: b
It equals to --set x=y --set a=b in helm command.
default: []
flags:
description: |
List of flags add to both "helm install" and "helm uninstall" commands.
For example:
- name: namespace
value: my_namespace
If the flag not requieres value, omit "value" and specify only the name as element in the list.
default: []
cloudify.types.helm.RepoConfig:
description: >
configuration properties for repo node type.
properties:
name:
type: string
description: >
Name of the repo that added/removed.
required: true
repo_url:
type: string
description: >
URL of the repo to add.
required: true
flags:
description: |
List of flags add to both "helm repo add" and "helm repo remove" commands.
For example:
- name: namespace
value: my_namespace
If the flag not requieres value, omit "value" and specify only the name as element in the list.
default: []
cloudify.types.helm.RegistryConfig:
description: Login and logout of a helm registry in the deployment directory.
properties:
host:
type: string
required: false
description: The host argument for the helm registry login command.
flags:
description: List of flags to add to "helm registry login". The logout command only takes the host parameter and inherited "flags".
node_types:
cloudify.nodes.helm.Binary:
derived_from: cloudify.nodes.SoftwareComponent
properties:
<<: *helm_config
use_existing_resource:
type: boolean
description: If true, use an existing helm installation rather than installing it.
default: false
installation_source:
type: string
default: 'https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz'
description: >
Location to download the Helm installation from. Ignored if 'use_existing_resource' is true.
max_sleep_time:
type: integer
default: 300
interfaces:
cloudify.interfaces.validation:
check_status:
implementation: helm.cloudify_helm.tasks.check_status_binary
check_drift:
implementation: helm.cloudify_helm.tasks.check_status_binary
cloudify.interfaces.lifecycle:
create:
implementation: helm.cloudify_helm.tasks.install_binary
poststart:
implementation: helm.cloudify_helm.tasks.check_status_binary
delete:
implementation: helm.cloudify_helm.tasks.uninstall_binary
cloudify.nodes.helm.Release:
derived_from: cloudify.nodes.Root
properties:
<<: *helm_config
<<: *external_resource
client_config:
type: cloudify.types.helm.ClientConfig
required: true
resource_config:
type: cloudify.types.helm.ReleaseConfig
required: true
max_sleep_time:
type: integer
default: 900
interfaces:
cloudify.interfaces.validation:
check_status:
implementation: helm.cloudify_helm.tasks.check_release_status
check_drift:
implementation: helm.cloudify_helm.tasks.check_release_drift
cloudify.interfaces.lifecycle:
start:
implementation: helm.cloudify_helm.tasks.install_release
inputs:
flags: &flags_input
description: >
Flags to add only to `helm install` command.The format is the same as "flags".
default: []
poststart:
implementation: helm.cloudify_helm.tasks.check_release_status
delete:
implementation: helm.cloudify_helm.tasks.uninstall_release
inputs:
flags:
<<: *flags_input
check_drift:
implementation: helm.cloudify_helm.tasks.check_release_drift
helm:
upgrade_release:
implementation: helm.cloudify_helm.tasks.upgrade_release
inputs:
chart:
description: |
The chart to upgrade the release with.
The chart argument can be either: a chart reference('example/mariadb'),
a packaged chart, or a fully qualified
URL.
default: ''
flags:
<<: *flags_input
set_values:
<<: *set_values
values_file:
type: string
description: >
Path to values files.
default: ''
pull:
implementation: helm.cloudify_helm.tasks.pull_chart
inputs: &chart_args
chart:
description: |
The chart to upgrade the release with.
The chart argument can be either: a chart reference('example/mariadb'),
a packaged chart, or a fully qualified
URL.
default: ''
flags:
<<: *flags_input
push:
implementation: helm.cloudify_helm.tasks.push_chart
inputs: *chart_args
cloudify.nodes.helm.Repo:
derived_from: cloudify.nodes.Root
properties:
<<: *helm_config
<<: *external_resource
resource_config:
type: cloudify.types.helm.RepoConfig
required: true
max_sleep_time:
type: integer
default: 300
interfaces:
cloudify.interfaces.validation:
check_status:
implementation: helm.cloudify_helm.tasks.repo_list
check_drift:
implementation: helm.cloudify_helm.tasks.repo_list
cloudify.interfaces.lifecycle:
start:
implementation: helm.cloudify_helm.tasks.add_repo
inputs:
flags:
description: >
Flags to add only to `helm install` command.The format is the same as "flags".
default: []
delete:
implementation: helm.cloudify_helm.tasks.remove_repo
inputs:
flags:
<<: *flags_input
check_drift:
implementation: helm.cloudify_helm.tasks.repo_check_drift
helm:
update_repo:
# update repositories for this repo helm client.
implementation: helm.cloudify_helm.tasks.update_repo
inputs:
flags:
# This operation does not take the flags from the node properties.
<<: *flags_input
cloudify.nodes.helm.Registry:
derived_from: cloudify.nodes.Root
properties:
<<: *helm_config
resource_config:
type: cloudify.types.helm.RegistryConfig
required: true
max_sleep_time:
type: integer
default: 300
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: helm.cloudify_helm.tasks.registry_login
inputs:
flags:
description: >
Flags to add only to `helm registry login` command. The format is the same as "flags".
default: []
delete:
implementation: helm.cloudify_helm.tasks.registry_logout
inputs:
flags:
<<: *flags_input
relationships:
cloudify.helm.relationships.run_on_host:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: helm.cloudify_helm.tasks.inject_env_properties
cloudify.relationships.helm.connected_to_shared_cluster:
derived_from: cloudify.relationships.connected_to
workflows:
update_repositories:
mapping: helm.cloudify_helm.workflows.update_repositories
parameters:
node_instance_id:
type: node_instance
description: |
Node instance ID's of helm clients to refresh repositories for(type:cloudify.nodes.helm.Repo).
flags:
<<: *flags_input
upgrade_release:
mapping: helm.cloudify_helm.workflows.upgrade_release
parameters:
node_instance_id:
type: node_instance
description: |
Node instance ID's of helm clients to refresh repositories for(type:cloudify.nodes.helm.Repo).
chart:
description: |
The chart to upgrade the release with.
The chart argument can be either: a chart reference('example/mariadb'),
a packaged chart, or a fully qualified
URL.
required: true
default: ''
flags:
<<: *flags_input
set_values:
<<: *set_values
values_file:
type: string
description: >
Path to values files.
default: ''
blueprint_labels:
obj-type:
values:
- helm
labels:
obj-type:
values:
- helm