-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathplugin_1_5.yaml
844 lines (741 loc) · 30.8 KB
/
plugin_1_5.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
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
plugins:
kubernetes:
executor: central_deployment_agent
package_name: cloudify-kubernetes-plugin
package_version: '2.13.32'
data_types:
cloudify.kubernetes.types.FileResource:
properties:
resource_path:
type: string
description: File relative to blueprint path.
required: false
target_path:
type: string
description: Do not use.
required: false
template_variables:
required: false
cloudify.kubernetes.types.ApiOptions:
properties:
host:
type: string
required: false
description: >
HTTP/HTTPS URL to Kubernetes API
ssl_ca_cert:
description: Either a path to a file or the content of a CA Cert file.
type: string
required: false
cert_file:
description: Either a path to a file or the content of a Cert file.
type: string
required: false
key_file:
type: string
description: Either a path to a file or the content of a key file.
required: false
verify_ssl:
type: string
required: false
api_key:
type: string
required: false
debug:
type: boolean
required: false
cloudify.kubernetes.types.ConfigurationVariant:
description: >
Type representing all Kubernetes API configuration variants.
Each property represents separate supported variant of configuration.
You should choose one variant and fill in only on property.
properties:
blueprint_file_name:
type: string
required: false
description: >
Name of Kubernetes configuration file attached to blueprint
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
api_options:
type: cloudify.kubernetes.types.ApiOptions
required: false
description: >
Set of basic properties describing Kubernetes API access
cloudify.kubernetes.types.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
azure_service_account:
type: dict
required: false
description: >
A dictionary containing all keys supported by the Azure plugin client_config property.
In addition, the keys "resource_group_name" and "cluster_name" must be provided with values as well.
cloudify.kubernetes.types.ApiMappingEntry:
description: >
Type defining python Kubernetes API objects and methods definitions for particular operation
properties:
api:
type: string
description: >
Name of python Kubernetes API object which will be used to as request for particular operation type
required: true
method:
type: string
description: >
Method name of python Kubernetes API object which will be used as request for particular operation type
required: true
payload:
type: string
description: >
Name of python Kubernetes API object which will be used as request data for particular operation type
required: false
cloudify.kubernetes.types.ApiMapping:
description: >
Type containing python Kubernetes API objects and methods definitions for all supported operations
properties:
create:
type: cloudify.kubernetes.types.ApiMappingEntry
description: >
Python Kubernetes API objects and methods definitions for create operation
read:
type: cloudify.kubernetes.types.ApiMappingEntry
description: >
Python Kubernetes API objects and methods definitions for read operation
update:
type: cloudify.kubernetes.types.ApiMappingEntry
description: >
Python Kubernetes API objects and methods definitions for update operation
delete:
type: cloudify.kubernetes.types.ApiMappingEntry
description: >
Python Kubernetes API objects and methods definitions for delete operation
cloudify.kubernetes.types.AbstractResource:
description: >
Type defining common base structure for any Kubernetes resource
It is some kind of wrapper for native Kubernetes YAML definition
properties:
apiVersion:
type: string
description: >
Kubernetes API version as a string
default: v1
kind:
type: string
required: false
metadata:
description: >
Metadata section related to single Kubernetes resource
default: {}
cloudify.kubernetes.types.ResourceDefinition:
derived_from: cloudify.kubernetes.types.AbstractResource
description: >
Type defining single Kubernetes resource e.g. Pod, Sevice, ...
It is some kind of wrapper for native Kubernetes YAML definition
properties:
spec:
description: >
Kuberneres resource object specification
default: {}
cloudify.kubernetes.types.RoleBindingDefinition:
derived_from: cloudify.kubernetes.types.AbstractResource
description: >
Type defining single Kubernetes resource e.g. Role, ...
It is some kind of wrapper for native Kubernetes YAML definition
properties:
roleRef:
description: >
RoleRef can only reference a ClusterRole in the global namespace.
If the RoleRef cannot be resolved, the Authorizer must return an error.
default: {}
subjects:
description: >
Subjects holds references to the objects the role applies to.
default: []
cloudify.kubernetes.types.RoleDefinition:
derived_from: cloudify.kubernetes.types.AbstractResource
description: >
Type defining single Kubernetes resource e.g. Role, ...
It is some kind of wrapper for native Kubernetes YAML definition
properties:
rules:
description: >
Rules holds all the PolicyRules for this Role.
default: []
cloudify.kubernetes.types.ClusterRoleDefinition:
derived_from: cloudify.kubernetes.types.RoleDefinition
description: >
Type defining single Kubernetes resource e.g. ClusterRole, ...
It is some kind of wrapper for native Kubernetes YAML definition
cloudify.kubernetes.types.StorageClassResourceDefinition:
derived_from: cloudify.kubernetes.types.AbstractResource
description: >
Type defining single Kubernetes resource e.g. StorageClass
It is some kind of wrapper for native Kubernetes YAML definition
properties:
parameters:
required: false
description: >
Additional parameters for object creation
provisioner:
required: false
description: >
Class provisioner for object creation
cloudify.kubernetes.types.ServiceAccountDefinition:
derived_from: cloudify.kubernetes.types.AbstractResource
description: >
ServiceAccount binds together: a name, understood by users,
and perhaps by peripheral systems, for an identity a principal
that can be authenticated and authorized * a set of secrets
properties:
automountServiceAccountToken:
description: >
AutomountServiceAccountToken indicates whether pods running
as this service account should have an API token automatically mounted.
Can be overridden at the pod level..
type: boolean
default: false
imagePullSecrets:
description: >
ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
in pods that reference this ServiceAccount. ImagePullSecrets are distinct
from Secrets because Secrets can be mounted in the pod,
but ImagePullSecrets are only accessed by the kubelet.
default: []
secrets:
description: >
Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
default: []
cloudify.kubernetes.types.SecretDefinition:
derived_from: cloudify.kubernetes.types.AbstractResource
description: >
Secret holds secret data of a certain type.
The total bytes of the values in the Data field must be less than MaxSecretSize bytes
properties:
type:
description: >
Used to facilitate programmatic handling of secret data.
type: string
required: false
data:
description: >
Data contains the secret data.
default: {}
stringData:
description: >
stringData allows specifying non-binary secret data in string form.
It is provided as a write-only convenience method.
All keys and values are merged into the data field on write,
overwriting any existing values. It is never output when reading from the API..
default: {}
cloudify.kubernetes.types.ConfigClassResourceDefinition:
derived_from: cloudify.kubernetes.types.ResourceDefinition
description: >
Type defining Kubernetes resource for storing data.
It is some kind of wrapper for native Kubernetes YAML definition
properties:
data:
description: >
Contains data to store in ConfigMap, Secret..
default: {}
cloudify.kubernetes.types.ClientConfig:
description: >
Configuration properties of kubernetes API and
authentication properties of Kubernetes Cloud providers.
properties:
configuration:
type: cloudify.kubernetes.types.ConfigurationVariant
description: >
Configuration properties of Kubernetes API. One of four configuration options can 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 o properties
authentication:
type: cloudify.kubernetes.types.AuthenticationVariant
required: false
description: >
Authentication properties of Kubernetes Cloud providers. Optional.
Currently supported providers: Google Cloud Platform.
cloudify.kubernetes.types.Options:
description: API options depending on API operations execution.
properties:
namespace:
type: string
description: The resource namespace.
default: default
grace_period_seconds:
type: integer
required: false
propagation_policy:
type: string
required: false
cloudify.kubernetes.types.CustomObjectsOptions:
description: API options depending on API operations execution.
properties:
namespace:
type: string
description: The resource namespace.
default: default
group:
type: string
description: The custom object resource API group.
required: true
plural:
type: string
description: The custom object resource API plural name.
required: true
version:
type: string
description: The custom object resource API version.
required: true
node_types:
cloudify.nodes.kubernetes.Master:
derived_from: cloudify.nodes.Root
properties:
configuration:
type: cloudify.kubernetes.types.ConfigurationVariant
description: >
Configuration properties of Kubernetes API. One of four configuration options can 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 o properties
authentication:
type: cloudify.kubernetes.types.AuthenticationVariant
required: false
description: >
Authentication properties of Kubernetes Cloud providers. Optional.
Currently supported providers: Google Cloud Platform.
cloudify.kubernetes.nodes.Master:
derived_from: cloudify.nodes.kubernetes.Master
cloudify.nodes.kubernetes.resources.ResourceBase:
derived_from: cloudify.nodes.Root
properties:
client_config: &client_config
type: cloudify.kubernetes.types.ClientConfig
required: false
description: >
Configuration properties of kubernetes API and
authentication properties of Kubernetes Cloud providers.
allow_node_redefinition:
type: boolean
description: >
Permit changing the name and kind and number of resources defined in file.
default: true
use_external_resource:
type: boolean
description: >
If the resource is expected to already exist.
default: false
create_if_missing:
type: boolean
description: >
If the resource is supposed to exist, and it does not, then create. Such resources will not deleted on uninstall.
default: false
use_if_exists:
type: boolean
description: >
If a resource with this name and kind already exists in the provided namespace, then use it instead of failing because the resource already exists. Such resources will be deleted on uninstall.
default: true
options:
description: API options depending on API operations execution.
type: cloudify.kubernetes.types.Options
cloudify.kubernetes.resources.ResourceBase:
derived_from: cloudify.nodes.kubernetes.resources.ResourceBase
cloudify.nodes.kubernetes.resources.ResourceWithValidateStatus:
derived_from: cloudify.kubernetes.resources.ResourceBase
properties:
validate_resource_status:
type: boolean
description: Set this to "true" if you want Cloudify to wait for a predetermined state.
default: false
cloudify.kubernetes.resources.ResourceWithValidateStatus:
derived_from: cloudify.nodes.kubernetes.resources.ResourceWithValidateStatus
cloudify.nodes.kubernetes.resources.BlueprintDefinedResource:
derived_from: cloudify.kubernetes.resources.ResourceWithValidateStatus
properties:
definition:
type: cloudify.kubernetes.types.ResourceDefinition
description: >
Definition of resource object using native Kubernetes YAML spec
interfaces:
cloudify.interfaces.validation:
check_status:
implementation: kubernetes.cloudify_kubernetes.tasks.resource_read_check_status
check_drift:
implementation: kubernetes.cloudify_kubernetes.tasks.resource_read_check_drift
cloudify.interfaces.lifecycle:
create:
implementation: kubernetes.cloudify_kubernetes.tasks.resource_create
poststart:
implementation: kubernetes.cloudify_kubernetes.tasks.resource_read
update:
implementation: kubernetes.cloudify_kubernetes.tasks.resource_update
delete:
implementation: kubernetes.cloudify_kubernetes.tasks.resource_delete
pull:
implementation: kubernetes.cloudify_kubernetes.tasks.resource_read
check_drift:
implementation: kubernetes.cloudify_kubernetes.tasks.resource_read_check_drift
cloudify.kubernetes.resources.BlueprintDefinedResource:
derived_from: cloudify.nodes.kubernetes.resources.BlueprintDefinedResource
cloudify.nodes.kubernetes.resources.ClusterRoleBinding:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
type: cloudify.kubernetes.types.RoleBindingDefinition
description: >
Definition of role binding using native Kubernetes YAML spec
cloudify.kubernetes.resources.ClusterRoleBinding:
derived_from: cloudify.nodes.kubernetes.resources.ClusterRoleBinding
cloudify.nodes.kubernetes.resources.RoleBinding:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
type: cloudify.kubernetes.types.RoleBindingDefinition
description: >
Definition of role binding using native Kubernetes YAML spec
cloudify.kubernetes.resources.RoleBinding:
derived_from: cloudify.nodes.kubernetes.resources.RoleBinding
cloudify.nodes.kubernetes.resources.Role:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
type: cloudify.kubernetes.types.RoleDefinition
description: >
Definition of role using native Kubernetes YAML spec
cloudify.kubernetes.resources.Role:
derived_from: cloudify.nodes.kubernetes.resources.Role
cloudify.nodes.kubernetes.resources.ClusterRole:
derived_from: cloudify.kubernetes.resources.Role
properties:
definition:
type: cloudify.kubernetes.types.ClusterRoleDefinition
description: >
Definition of cluster role using native Kubernetes YAML spec
cloudify.kubernetes.resources.ClusterRole:
derived_from: cloudify.nodes.kubernetes.resources.ClusterRole
cloudify.nodes.kubernetes.resources.Secret:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
type: cloudify.kubernetes.types.SecretDefinition
description: >
Definition of secret using native Kubernetes YAML spec
cloudify.kubernetes.resources.Secret:
derived_from: cloudify.nodes.kubernetes.resources.Secret
cloudify.nodes.kubernetes.resources.ServiceAccount:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
type: cloudify.kubernetes.types.ServiceAccountDefinition
description: >
Definition of service account using native Kubernetes YAML spec
cloudify.kubernetes.resources.ServiceAccount:
derived_from: cloudify.nodes.kubernetes.resources.ServiceAccount
cloudify.nodes.kubernetes.resources.Deployment:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
validate_resource_status:
default: true
cloudify.kubernetes.resources.Deployment:
derived_from: cloudify.nodes.kubernetes.resources.Deployment
cloudify.nodes.kubernetes.resources.Node:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
cloudify.kubernetes.resources.Node:
derived_from: cloudify.nodes.kubernetes.resources.Node
cloudify.nodes.kubernetes.resources.Namespace:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
cloudify.kubernetes.resources.Namespace:
derived_from: cloudify.nodes.kubernetes.resources.Namespace
cloudify.nodes.kubernetes.resources.Pod:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
validate_resource_status:
default: true
cloudify.kubernetes.resources.Pod:
derived_from: cloudify.nodes.kubernetes.resources.Pod
cloudify.nodes.kubernetes.resources.ReplicaSet:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
validate_resource_status:
default: true
cloudify.kubernetes.resources.ReplicaSet:
derived_from: cloudify.nodes.kubernetes.resources.ReplicaSet
cloudify.nodes.kubernetes.resources.ReplicationController:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
validate_resource_status:
default: true
cloudify.kubernetes.resources.ReplicationController:
derived_from: cloudify.nodes.kubernetes.resources.ReplicationController
cloudify.nodes.kubernetes.resources.DaemonSet:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
cloudify.kubernetes.resources.DaemonSet:
derived_from: cloudify.nodes.kubernetes.resources.DaemonSet
cloudify.nodes.kubernetes.resources.CustomResourceDefinition:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
cloudify.kubernetes.resources.CustomResourceDefinition:
derived_from: cloudify.nodes.kubernetes.resources.CustomResourceDefinition
cloudify.nodes.kubernetes.resources.CustomObject:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
options:
type: cloudify.kubernetes.types.CustomObjectsOptions
cloudify.kubernetes.resources.CustomObject:
derived_from: cloudify.nodes.kubernetes.resources.CustomObject
cloudify.nodes.kubernetes.resources.Service:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
validate_resource_status:
default: true
cloudify.kubernetes.resources.Service:
derived_from: cloudify.nodes.kubernetes.resources.Service
cloudify.nodes.kubernetes.resources.PersistentVolume:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
validate_resource_status:
default: true
cloudify.kubernetes.resources.PersistentVolume:
derived_from: cloudify.nodes.kubernetes.resources.PersistentVolume
cloudify.nodes.kubernetes.resources.ConfigMap:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
type: cloudify.kubernetes.types.ConfigClassResourceDefinition
cloudify.kubernetes.resources.ConfigMap:
derived_from: cloudify.nodes.kubernetes.resources.ConfigMap
cloudify.nodes.kubernetes.resources.StorageClass:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
type: cloudify.kubernetes.types.StorageClassResourceDefinition
description: >
Definition of resource object using native Kubernetes YAML spec
cloudify.kubernetes.resources.StorageClass:
derived_from: cloudify.nodes.kubernetes.resources.StorageClass
cloudify.nodes.kubernetes.resources.StatefulSet:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
default: {}
description: >
Definition of resource object using native Kubernetes YAML spec
cloudify.kubernetes.resources.StatefulSet:
derived_from: cloudify.nodes.kubernetes.resources.StatefulSet
cloudify.nodes.kubernetes.resources.PodSecurityPolicy:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
default: {}
description: >
Definition of resource object using native Kubernetes YAML spec
cloudify.kubernetes.resources.PodSecurityPolicy:
derived_from: cloudify.nodes.kubernetes.resources.PodSecurityPolicy
cloudify.nodes.kubernetes.resources.NetworkPolicy:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
default: {}
description: >
Definition of resource object using native Kubernetes YAML spec
cloudify.kubernetes.resources.NetworkPolicy:
derived_from: cloudify.nodes.kubernetes.resources.NetworkPolicy
cloudify.nodes.kubernetes.resources.Ingress:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
default: {}
description: >
Definition of resource object using native Kubernetes YAML spec
cloudify.kubernetes.resources.Ingress:
derived_from: cloudify.nodes.kubernetes.resources.Ingress
cloudify.nodes.kubernetes.resources.PersistentVolumeClaim:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
default: {}
description: >
Definition of resource object using native Kubernetes YAML spec
validate_resource_status:
default: true
cloudify.kubernetes.resources.PersistentVolumeClaim:
derived_from: cloudify.nodes.kubernetes.resources.PersistentVolumeClaim
cloudify.nodes.kubernetes.resources.CustomBlueprintDefinedResource:
derived_from: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
api_mapping:
type: cloudify.kubernetes.types.ApiMapping
description: >
Python Kubernetes API objects and methods definitions used for given resource type
interfaces:
cloudify.interfaces.validation:
check_status:
implementation: kubernetes.cloudify_kubernetes.tasks.custom_check_status
check_drift:
implementation: kubernetes.cloudify_kubernetes.tasks.custom_check_drift
cloudify.interfaces.lifecycle:
create:
implementation: kubernetes.cloudify_kubernetes.tasks.custom_resource_create
delete:
implementation: kubernetes.cloudify_kubernetes.tasks.custom_resource_delete
check_drift:
implementation: kubernetes.cloudify_kubernetes.tasks.custom_check_drift
cloudify.kubernetes.resources.CustomBlueprintDefinedResource:
derived_from: cloudify.nodes.kubernetes.resources.CustomBlueprintDefinedResource
cloudify.nodes.kubernetes.resources.FileDefinedResource:
derived_from: cloudify.kubernetes.resources.ResourceWithValidateStatus
properties:
file:
type: cloudify.kubernetes.types.FileResource
description: >
A path to YAML file containing the resource definition.
allow_node_redefinition:
type: boolean
description: >
Permit changing the name and kind and number of resources defined in file.
default: false
validate_resource_status:
default: true
interfaces:
cloudify.interfaces.validation:
check_status:
implementation: kubernetes.cloudify_kubernetes.tasks.file_resource_check_status
check_drift:
implementation: kubernetes.cloudify_kubernetes.tasks.file_resource_check_drift
cloudify.interfaces.lifecycle:
create:
implementation: kubernetes.cloudify_kubernetes.tasks.file_resource_create
poststart:
implementation: kubernetes.cloudify_kubernetes.tasks.file_resource_read
update:
implementation: kubernetes.cloudify_kubernetes.tasks.file_resource_update
delete:
implementation: kubernetes.cloudify_kubernetes.tasks.file_resource_delete
pull:
implementation: kubernetes.cloudify_kubernetes.tasks.file_resource_read
check_drift:
implementation: kubernetes.cloudify_kubernetes.tasks.file_resource_check_drift
cloudify.kubernetes.resources.FileDefinedResource:
derived_from: cloudify.nodes.kubernetes.resources.FileDefinedResource
cloudify.nodes.kubernetes.resources.MultipleFileDefinedResources:
derived_from: cloudify.kubernetes.resources.ResourceWithValidateStatus
properties:
files:
description: >
A list of paths to YAML files containing the resources definition.
allow_node_redefinition:
type: boolean
description: >
Permit changing the name and kind and number of resources defined in file.
default: false
interfaces:
cloudify.interfaces.validation:
check_status:
implementation: kubernetes.cloudify_kubernetes.tasks.multiple_file_resource_check_status
check_drift:
implementation: kubernetes.cloudify_kubernetes.tasks.multiple_file_resource_check_drift
cloudify.interfaces.lifecycle:
create:
implementation: kubernetes.cloudify_kubernetes.tasks.multiple_file_resource_create
poststart:
implementation: kubernetes.cloudify_kubernetes.tasks.multiple_file_resource_read
update:
implementation: kubernetes.cloudify_kubernetes.tasks.multiple_file_resource_update
delete:
implementation: kubernetes.cloudify_kubernetes.tasks.multiple_file_resource_delete
pull:
implementation: kubernetes.cloudify_kubernetes.tasks.multiple_file_resource_read
check_drift:
implementation: kubernetes.cloudify_kubernetes.tasks.multiple_file_resource_check_drift
cloudify.kubernetes.resources.MultipleFileDefinedResources:
derived_from: cloudify.nodes.kubernetes.resources.MultipleFileDefinedResources
cloudify.nodes.kubernetes.resources.SharedCluster:
derived_from: cloudify.nodes.SharedResource
properties:
client_config: *client_config
options:
description: API options depending on API operations execution.
type: cloudify.kubernetes.types.Options
interfaces:
cloudify.interfaces.validation:
check_status:
implementation: kubernetes.cloudify_kubernetes.tasks.get_token_status
cloudify.interfaces.lifecycle:
configure:
implementation: kubernetes.cloudify_kubernetes.tasks.refresh_config
start:
implementation: kubernetes.cloudify_kubernetes.tasks.create_token
poststart:
implementation: kubernetes.cloudify_kubernetes.tasks.read_token
prestop:
implementation: kubernetes.cloudify_kubernetes.tasks.refresh_config
stop:
implementation: kubernetes.cloudify_kubernetes.tasks.delete_token
pull:
implementation: kubernetes.cloudify_kubernetes.tasks.read_token
cloudify.kubernetes.resources.SharedCluster:
derived_from: cloudify.nodes.kubernetes.resources.SharedCluster
relationships:
cloudify.relationships.kubernetes.managed_by_master:
derived_from: cloudify.relationships.connected_to
cloudify.kubernetes.relationships.managed_by_master:
derived_from: cloudify.relationships.kubernetes.managed_by_master
cloudify.relationships.kubernetes.connected_to_shared_cluster:
derived_from: cloudify.relationships.connected_to
workflows:
update_resource_definition:
mapping: kubernetes.cloudify_kubernetes.workflows.update_resource_definition
parameters:
node_instance_id:
type: node_instance
description: The id of the node-instance that you want to modify.
resource_definition_changes:
type: dict
description: The changes to the resource definition that you are making.
refresh_and_store_token:
mapping: kubernetes.cloudify_kubernetes.workflows.refresh_and_store_token
availability_rules:
node_instances_active: ['all', 'partial']
node_types_required: ['cloudify.kubernetes.resources.SharedCluster']
parameters:
kubernetes_cluster_node_instance_id:
type: string
default: eks_cluster
deployment_capability_name:
type: string
default: connection_details
service_account_node_instance_id:
type: string
default: new_service_account
secret_token_node_instance_id:
type: string
default: secret
store_token_and_kubeconfig_id:
type: string
default: store_token_and_kubeconfig
blueprint_labels:
obj-type:
values:
- kubernetes
labels:
obj-type:
values:
- kubernetes