blob: c7b70890e0e4d83722aec06cbc20f3fde0d42686 [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
25 # Fleet repo
26 - name: git_fleet_url
27 value: "{{ git_fleet_url }}"
28 - name: fleet_destination_folder
29 value: "/fleet/fleet-osm"
30 - name: git_fleet_cred_secret
31 value: fleet-repo
32
33 # Specific parameters
34 - name: profile_name
35 value: "{{ profile_name }}"
36 - name: profile_type
37 value: "{{ profile_type }}"
38 - name: cluster_kustomization_name
39 value: "{{ cluster_kustomization_name }}"
40 - name: project_name
41 value: "{{ osm_project_name }}"
42
43 # Debug/dry run?
44 - name: debug
45 value: "{{ workflow_debug }}"
46 - name: dry_run
47 value: "{{ workflow_dry_run }}"
48
49 # Cleanup policy
50 ttlStrategy:
51 secondsAfterCompletion: 2000 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished
52 secondsAfterSuccess: 1000 # Time to live after workflow is successful
53 secondsAfterFailure: 1000 # Time to live after workflow fails
54
55 workflowTemplateRef:
56 name: full-attach-profile-wft