summaryrefslogtreecommitdiffstats
path: root/cloudify/types/onap.yaml
blob: 7e9b83425e54c82416c14f2bd43b1c2514eced6f (plain)
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
node_types:
  cloudify.onap.kubernetes.Environment:
    derived_from: cloudify.nodes.Root
    properties:
      namespace:
        type: string
      init_pod:
        type: string
        description: >
          Path to init pod YAML file
      options:
        description: >
          For compatibility with kubernetes plugin.
          To be removed in the future.
        default: {}
    interfaces:
      cloudify.interfaces.lifecycle:
        create:
          implementation: cloudify/scripts/onap/create_namespace.py
          executor: central_deployment_agent
        start:
          implementation: cloudify/scripts/onap/create_init_pod.py
          executor: central_deployment_agent
        stop:
          implementation: cloudify/scripts/onap/delete_init_pod.py
          executor: central_deployment_agent
        delete:
          implementation: cloudify/scripts/onap/delete_namespace.py
          executor: central_deployment_agent

  cloudify.onap.kubernetes.App:
    derived_from: cloudify.nodes.Root
    properties:
      name:
        type: string
        description: >
          Name of ONAP app
      values:
        type: string
        description: >
          Paths (relative, blueprint prespective) to values.yaml file
        required: false
      resources:
        description: >
          List of paths (relative, blueprint prespective)
          to all kubernetes resources YAML files definition
        default: []
      services:
        type: string
        description: >
          Path (relative, blueprint prespective)
          to kubernetes app services YAML file definition
        default: []
      inputs:
        description: >
          Parameters required to create kubernetes resources for each app
        default: {}
      options:
        description: >
          For compatibility with kubernetes plugin.
          To be removed in the future.
        default: {}
    interfaces:
      cloudify.interfaces.lifecycle:
        create:
          implementation: cloudify/scripts/onap/create_namespace.py
          executor: central_deployment_agent
        configure:
          implementation: fabric.fabric_plugin.tasks.run_task
          executor: central_deployment_agent
          inputs:
            tasks_file:
              default: cloudify/scripts/onap/configure_docker_secret_workaround.py
            task_name:
              default: configure_secret
            fabric_env:
              default:
                host_string: { get_secret: kubernetes_master_ip }
                user: { get_secret: agent_user }
                key: { get_secret: agent_key_private }
        start:
          implementation: cloudify/scripts/onap/create_resources_services.py
          executor: central_deployment_agent
        stop:
          implementation: cloudify/scripts/onap/delete_resources_services.py
          executor: central_deployment_agent
        delete:
          implementation: cloudify/scripts/onap/delete_namespace.py
          executor: central_deployment_agent