blob: 703ee2190fbc9faba73cca5cf367360ff7c2b403 [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
39 # Specific parameters
40 - name: providerconfig_name
41 value: "{{ providerconfig_name }}"
42 ## As of today, one among `azure`, `aws` or `gcp`
43 - name: provider_type
44 value: "{{ provider_type }}"
45 ## Final secret to reference from the `ProviderConfig`
46 - name: cred_secret_name
47 value: "{{ cred_secret_name }}"
48 ## Temporary secret with secret contents for the workflow
49 ## - If `temp_cred_secret_name` is empty, assumes that the final secret already exists
50 - name: temp_cred_secret_name
51 value: "{{ temp_cred_secret_name }}"
52 - name: temp_cred_secret_key
53 value: "creds"
54 - name: age_public_key_mgmt
55 value: "{{ public_key_mgmt }}"
56 - name: osm_project_name
57 value: "{{ osm_project_name }}"
58 ## Specific parameters - GCP only
59 - name: target_gcp_project
60 value: "{{ target_gcp_project }}"
61 # Debug/dry run?
62 - name: debug
63 value: "{{ workflow_debug }}"
64 - name: dry_run
65 value: "{{ workflow_dry_run }}"
66
67 # Cleanup policy
68 ttlStrategy:
69 secondsAfterCompletion: 6000 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished
70 secondsAfterSuccess: 6000 # Time to live after workflow is successful
71 secondsAfterFailure: 9000 # Time to live after workflow fails
72
73 workflowTemplateRef:
74 name: full-update-crossplane-providerconfig