| yshah | 83a3057 | 2025-06-13 08:38:49 +0000 | [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 | apiVersion: argoproj.io/v1alpha1 |
| 18 | kind: Workflow |
| 19 | metadata: |
| 20 | name: {{ workflow_name }} |
| 21 | spec: |
| 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 | # SW-Catalogs repo |
| 34 | - name: git_sw_catalogs_url |
| 35 | value: "{{ git_sw_catalogs_url }}" |
| 36 | - name: sw_catalogs_destination_folder |
| 37 | value: "/sw-catalogs/sw-catalogs-osm" |
| 38 | - name: git_sw_catalogs_cred_secret |
| 39 | value: sw-catalogs |
| 40 | |
| 41 | # Specific parameters |
| 42 | - name: nodegroup_kustomization_name |
| 43 | value: {{ nodegroup_kustomization_name }} |
| 44 | - name: cluster_name |
| 45 | value: {{ cluster_name }} |
| 46 | - name: project_name |
| 47 | value: "{{ osm_project_name }}" |
| 48 | |
| 49 | # Debug/dry run? |
| 50 | - name: debug |
| 51 | value: "{{ workflow_debug }}" |
| 52 | - name: dry_run |
| 53 | value: "{{ workflow_dry_run }}" |
| 54 | |
| 55 | # Cleanup policy |
| 56 | ttlStrategy: |
| 57 | secondsAfterCompletion: 1000 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished |
| 58 | secondsAfterSuccess: 500 # Time to live after workflow is successful |
| 59 | secondsAfterFailure: 500 # Time to live after workflow fails |
| 60 | |
| 61 | workflowTemplateRef: |
| 62 | name: full-delete-nodegroup-wft |