blob: a1ae75e44b947c4f1cf61ef752dca5f507bc33b8 [file] [log] [blame]
garciadeblasdde3a312024-09-17 13:25:06 +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#######################################################################################
17
18apiVersion: argoproj.io/v1alpha1
19kind: Workflow
20metadata:
21 name: {{ workflow_name }}
22spec:
23 arguments:
24 parameters:
25
26 # Fleet repo
27 - name: git_fleet_url
28 value: "{{ git_fleet_url }}"
29 - name: fleet_destination_folder
30 value: "/fleet/fleet-osm"
31 - name: git_fleet_cred_secret
32 value: fleet-repo
33
34 # SW-Catalogs repo
35 - name: git_sw_catalogs_url
36 value: "{{ git_sw_catalogs_url }}"
37 - name: sw_catalogs_destination_folder
38 value: "/sw-catalogs/sw-catalogs-osm"
39 - name: git_sw_catalogs_cred_secret
40 value: sw-catalogs
41
42 # Specific parameters - Cluster bootstrap
43 - name: cluster_kustomization_name
44 value: {{ cluster_kustomization_name }}
45 - name: cluster_name
46 value: {{ cluster_name }}
47 - name: public_key_mgmt
48 value: "{{ public_key_mgmt }}"
49 - name: public_key_new_cluster
50 value: "{{ public_key_new_cluster }}"
51 - name: secret_name_private_age_key_for_new_cluster
52 value: "{{ secret_name_private_key_new_cluster }}"
53 - name: key_name_in_secret
54 value: "agekey"
55 - name: mgmt_project_name
56 value: "{{ osm_project_name }}"
57
58 # Debug/dry run?
59 - name: debug
60 value: "{{ workflow_debug }}"
61 - name: dry_run
62 value: "{{ workflow_dry_run }}"
63
64
65 # Cleanup policy
66 ttlStrategy:
67 secondsAfterCompletion: 2000 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished
68 secondsAfterSuccess: 1000 # Time to live after workflow is successful
69 secondsAfterFailure: 1000 # Time to live after workflow fails
70
71 workflowTemplateRef:
72 name: full-bootstrap-cluster-wft