blob: 411fb7603740b5c27f1e5712fb3116778a3fd071 [file] [log] [blame]
yshah83a30572025-06-13 08:38:49 +00001#######################################################################################
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 # 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 - Generic cluster creation
42 - name: nodegroup_name
43 value: {{ nodegroup_name }}
44 - name: nodegroup_kustomization_name
45 value: {{ nodegroup_kustomization_name }}
46 - name: cluster_name
47 value: {{ cluster_name }}
48 ## As of today, one among `aks`, `eks` or `gke`:
49 - name: cluster_type
50 value: {{ cluster_type }}
51 - name: vm_size
52 value: {{ vm_size }}
53 - name: node_count
54 value: "{{ node_count }}"
55 - name: cluster_location
56 value: {{ cluster_location }}
57 - name: providerconfig_name
58 value: {{ providerconfig_name }}
59 - name: configmap_name
60 value: {{ configmap_name }}
61 - name: role
62 value: {{role}}
63 # Specific parameters - Bootstrap and credentials
64 - name: public_key_mgmt
65 value: "{{ public_key_mgmt }}"
66 - name: public_key_new_cluster
67 value: "{{ public_key_new_cluster }}"
68 - name: secret_name_private_age_key_for_new_cluster
69 value: "{{ secret_name_private_key_new_cluster }}"
70 - name: key_name_in_secret
71 value: "agekey"
72 - name: mgmt_project_name
73 value: "{{ osm_project_name }}"
74
75 # Specific parameters - AKS only
76 - name: rg_name
77 value: {{ rg_name }}
78
79 # Specific parameters - GKE only
80 - name: preemptible_nodes
81 value: "{{ preemptible_nodes }}"
82
83 # Advanced parameters - Recommended to keep defaults
84 - name: skip_bootstrap
85 value: "{{ skip_bootstrap }}"
86 - name: mgmt_cluster_name
87 value: "_management"
88 - name: base_templates_path
89 value: "cloud-resources"
90 - name: cloned_fleet_folder_name
91 value: "fleet-osm"
92 - name: cloned_sw_catalogs_folder_name
93 value: "sw-catalogs-osm"
94
95 # Debug/dry run?
96 - name: debug
97 value: "{{ workflow_debug }}"
98 - name: dry_run
99 value: "{{ workflow_dry_run }}"
100
101
102 # Cleanup policy
103 ttlStrategy:
104 secondsAfterCompletion: 2000 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished
105 secondsAfterSuccess: 1000 # Time to live after workflow is successful
106 secondsAfterFailure: 1000 # Time to live after workflow fails
107
108 workflowTemplateRef:
109 name: full-create-nodegroup-wft