blob: b79b966c6c84a531c175d347593b0e6bea02e783 [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
32 # Specific parameters - Source and destination KSU
33 ## Source KSU:
34 - name: source_ksu_name
35 value: "jenkins"
36 - name: source_profile_name
37 value: "myakscluster01"
38 - name: source_profile_type
39 value: "applications"
40 - name: source_project_name
41 value: "osm_admin"
42 ## Destination KSU:
43 ## - If any of the destination parameters are not specified, it will assume
44 ## they are the same as in source.
45 ## - It will reject if all are empty or equal to source, to avoid cloning a KSU over itself
46 - name: destination_ksu_name
47 value: ""
48 - name: destination_profile_name
49 value: "myprofile"
50 - name: destination_profile_type
51 value: "applications"
52 - name: destination_project_name
53 value: ""
54 # Debug/dry run?
55 - name: debug
56 value: "{{ workflow_debug }}"
57 - name: dry_run
58 value: "{{ workflow_dry_run }}"
59
60 # Cleanup policy
61 ttlStrategy:
62 secondsAfterCompletion: 600 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished
63 secondsAfterSuccess: 600 # Time to live after workflow is successful
64 secondsAfterFailure: 900 # Time to live after workflow fails
65
66 workflowTemplateRef:
67 name: full-clone-ksu-wtf