blob: a73cd3e8d76563f4f5e46afe51488ec1dedf0f1f [file] [log] [blame]
garciadeblas96b94f52024-07-08 16:18:21 +02001#######################################################################################
2# Copyright ETSI Contributors and Others.
3#
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
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
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
13# implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#######################################################################################
17apiVersion: argoproj.io/v1alpha1
18kind: Workflow
19metadata:
20 name: {{ workflow_name }}
21spec:
22 arguments:
23 parameters:
24 # Fleet repo
25 - name: git_fleet_url
26 value: "{{ git_fleet_url }}"
27 - name: fleet_destination_folder
28 value: "/fleet/fleet-osm"
29 - name: git_fleet_cred_secret
30 value: fleet-repo
31 # SW-Catalogs repo
32 - name: git_sw_catalogs_url
33 value: "{{ git_sw_catalogs_url }}"
34 - name: sw_catalogs_destination_folder
35 value: "/sw-catalogs/sw-catalogs-osm"
36 - name: git_sw_catalogs_cred_secret
37 value: sw-catalogs
38 # Specific parameters - KSU id
39 - name: ksu_name
40 value: "{{ ksu_name }}"
41 - name: profile_name
42 value: "{{ profile_name }}"
43 - name: profile_type
44 value: "{{ profile_type }}"
45 - name: project_name
46 value: "{{ osm_project_name }}"
47 # Debug/dry run?
48 - name: debug
49 value: "{{ workflow_debug }}"
50 - name: dry_run
51 value: "{{ workflow_dry_run }}"
52
53 # Cleanup policy
54 ttlStrategy:
55 secondsAfterCompletion: 600 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished
56 secondsAfterSuccess: 600 # Time to live after workflow is successful
57 secondsAfterFailure: 900 # Time to live after workflow fails
58
59 workflowTemplateRef:
60 name: full-delete-ksu-wtf