| garciadeblas | dde3a31 | 2024-09-17 13:25:06 +0200 | [diff] [blame] | 1 | ####################################################################################### |
| 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 | |
| 18 | apiVersion: argoproj.io/v1alpha1 |
| 19 | kind: Workflow |
| 20 | metadata: |
| 21 | name: {{ workflow_name }} |
| 22 | spec: |
| 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 }}" |
| garciadeblas | 6504749 | 2025-09-17 23:33:13 +0200 | [diff] [blame] | 57 | - name: templates_dir |
| 58 | value: "{{ templates_dir }}" |
| garciadeblas | dde3a31 | 2024-09-17 13:25:06 +0200 | [diff] [blame] | 59 | |
| 60 | # Debug/dry run? |
| 61 | - name: debug |
| 62 | value: "{{ workflow_debug }}" |
| 63 | - name: dry_run |
| 64 | value: "{{ workflow_dry_run }}" |
| 65 | |
| 66 | |
| 67 | # Cleanup policy |
| 68 | ttlStrategy: |
| garciadeblas | c3e2209 | 2026-02-06 10:19:21 +0100 | [diff] [blame^] | 69 | secondsAfterSuccess: 1800 # Time to live after workflow is successful |
| 70 | secondsAfterFailure: 7200 # Time to live after workflow fails |
| garciadeblas | dde3a31 | 2024-09-17 13:25:06 +0200 | [diff] [blame] | 71 | |
| 72 | workflowTemplateRef: |
| 73 | name: full-bootstrap-cluster-wft |