1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
18 apiVersion: argoproj.io/v1alpha1
19 kind: WorkflowTemplate
21 name: oka-management-wft
22 namespace: osm-workflows
26 # Create an OKA based on an OKA Package pre-loaded into a pvc
30 # References to required external resources
31 - name: sw_catalogs_volume_name
32 - name: temp_volume_name
33 # Specific parameters - OKA
35 ## Choose among `infra-controllers`, `infra-configs`, `cloud-resources`, `apps`:
44 # Other parameters - Do not touch
45 - name: sw_catalogs_mount_path
47 - name: cloned_sw_catalogs_folder_name
48 value: "sw-catalogs-osm"
49 - name: temp_volume_mount_path
55 image: ttl.sh/osm-krm-functions:24h
56 # imagePullPolicy: Always
59 value: "{{inputs.parameters.debug}}"
60 command: ["/app/scripts/entrypoint.sh"]
63 - "{{inputs.parameters.oka_name}}"
64 - "{{inputs.parameters.oka_type}}"
65 - "{{inputs.parameters.project_name}}"
66 - "{{inputs.parameters.sw_catalogs_mount_path}}/{{inputs.parameters.cloned_sw_catalogs_folder_name}}"
67 - "{{inputs.parameters.oka_location}}"
68 - "{{inputs.parameters.tarball_file}}"
70 - name: sw-catalogs-repo-volume
71 mountPath: '{{inputs.parameters.sw_catalogs_mount_path}}'
73 mountPath: '{{inputs.parameters.temp_volume_mount_path}}'
75 - name: sw-catalogs-repo-volume
76 persistentVolumeClaim:
77 claimName: '{{inputs.parameters.sw_catalogs_volume_name}}'
79 persistentVolumeClaim:
80 claimName: '{{inputs.parameters.temp_volume_name}}'
87 # Update an OKA based on an OKA Package pre-loaded into a pvc
91 # References to required external resources
92 - name: sw_catalogs_volume_name
93 - name: temp_volume_name
94 # Specific parameters - OKA
96 ## Choose among `infra-controllers`, `infra-configs`, `cloud-resources`, `apps`:
105 # Other parameters - Do not touch
106 - name: sw_catalogs_mount_path
107 value: "/sw-catalogs"
108 - name: cloned_sw_catalogs_folder_name
109 value: "sw-catalogs-osm"
110 - name: temp_volume_mount_path
116 image: ttl.sh/osm-krm-functions:24h
117 # imagePullPolicy: Always
120 value: "{{inputs.parameters.debug}}"
121 command: ["/app/scripts/entrypoint.sh"]
124 - "{{inputs.parameters.oka_name}}"
125 - "{{inputs.parameters.oka_type}}"
126 - "{{inputs.parameters.project_name}}"
127 - "{{inputs.parameters.sw_catalogs_mount_path}}/{{inputs.parameters.cloned_sw_catalogs_folder_name}}"
128 - "{{inputs.parameters.oka_location}}"
129 - "{{inputs.parameters.tarball_file}}"
131 - name: sw-catalogs-repo-volume
132 mountPath: '{{inputs.parameters.sw_catalogs_mount_path}}'
134 mountPath: '{{inputs.parameters.temp_volume_mount_path}}'
136 - name: sw-catalogs-repo-volume
137 persistentVolumeClaim:
138 claimName: '{{inputs.parameters.sw_catalogs_volume_name}}'
140 persistentVolumeClaim:
141 claimName: '{{inputs.parameters.temp_volume_name}}'
152 # References to required external resources
153 - name: sw_catalogs_volume_name
154 # Specific parameters - OKA
156 ## Choose among `infra-controllers`, `infra-configs`, `cloud-resources`, `apps`:
163 # Other parameters - Do not touch
164 - name: sw_catalogs_mount_path
165 value: "/sw-catalogs"
166 - name: cloned_sw_catalogs_folder_name
167 value: "sw-catalogs-osm"
170 image: ttl.sh/osm-krm-functions:24h
171 # imagePullPolicy: Always
174 value: "{{inputs.parameters.debug}}"
175 command: ["/app/scripts/entrypoint.sh"]
178 - "{{inputs.parameters.oka_name}}"
179 - "{{inputs.parameters.oka_type}}"
180 - "{{inputs.parameters.project_name}}"
181 - "{{inputs.parameters.sw_catalogs_mount_path}}/{{inputs.parameters.cloned_sw_catalogs_folder_name}}"
183 - name: sw-catalogs-repo-volume
184 mountPath: '{{inputs.parameters.sw_catalogs_mount_path}}'
186 - name: sw-catalogs-repo-volume
187 persistentVolumeClaim:
188 claimName: '{{inputs.parameters.sw_catalogs_volume_name}}'