| garciadeblas | 96b94f5 | 2024-07-08 16:18:21 +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 | apiVersion: argoproj.io/v1alpha1 |
| 18 | kind: Workflow |
| 19 | metadata: |
| 20 | name: {{ workflow_name }} |
| 21 | spec: |
| 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 | # HelmRelease generation |
| 32 | - name: helmrelease_name |
| 33 | value: "jenkins" |
| 34 | - name: chart_name |
| 35 | value: "jenkins" |
| 36 | - name: chart_version |
| 37 | value: '13.4.x' |
| 38 | - name: target_ns |
| 39 | value: "jenkins" |
| 40 | - name: create_ns |
| 41 | value: "true" |
| 42 | # Repo source generation |
| 43 | - name: is_preexisting_repo |
| 44 | value: "false" |
| 45 | - name: helmrepo_name |
| 46 | value: "bitnamicharts" |
| 47 | - name: helmrepo_url |
| 48 | value: oci://registry-1.docker.io/bitnamicharts |
| 49 | - name: helmrepo_ns |
| 50 | value: "jenkins" |
| 51 | - name: helmrepo_secret_ref |
| 52 | value: "" |
| 53 | # HelmRelease inline values (if any) |
| 54 | - name: inline_values |
| 55 | # Install some Jenkins plugins: |
| 56 | value: | |
| 57 | plugins: |
| 58 | - kubernetes:3852.v41ea_166a_ed1b_ |
| 59 | - workflow-aggregator:590.v6a_d052e5a_a_b_5 |
| 60 | - git:4.13.0 |
| 61 | - configuration-as-code:1569.vb_72405b_80249 |
| 62 | # overridePlugins: true |
| 63 | # Secret reference and generation (if required) |
| 64 | - name: is_preexisting_secret |
| 65 | value: "false" |
| 66 | - name: values_secret_name |
| 67 | value: "mysecret" |
| 68 | - name: secret_key |
| 69 | value: "values.yaml" |
| 70 | - name: age_public_key |
| 71 | value: "age1s236gmpr7myjjyqfrl6hwz0npqjgxa9t6tjj46yq28j2c4nk653saqreav" |
| 72 | - name: reference_secret_for_values |
| 73 | value: "jenkins-credentials" |
| 74 | - name: reference_key_for_values |
| 75 | value: "creds" |
| 76 | # ConfigMap reference and generation (if required) |
| 77 | - name: is_preexisting_cm |
| 78 | value: "false" |
| 79 | - name: values_cm_name |
| 80 | value: "" |
| 81 | - name: cm_key |
| 82 | value: "values.yaml" |
| 83 | - name: cm_values |
| 84 | value: "" |
| 85 | # value: | |
| 86 | # cm-key1: cm-value1 |
| 87 | # cm-key2: cm-value2 |
| 88 | # KSU rendering |
| 89 | - name: ksu_name |
| 90 | value: "jenkins" |
| 91 | - name: profile_name |
| 92 | value: "myakscluster01" |
| 93 | - name: profile_type |
| 94 | value: "applications" |
| 95 | - name: project_name |
| 96 | value: "osm_admin" |
| 97 | # Will it syncronize the KSU folder with the results of the rendering? |
| 98 | ## If left empty, it does not syncronize, so that we can easily accumulate more than |
| 99 | ## one Helm chart into the same KSU if desired |
| 100 | ## In this example, we will syncronize explicitly to make the example easier to follow. |
| 101 | - name: sync |
| 102 | value: "true" |
| 103 | # Debug/dry run? |
| 104 | - name: debug |
| 105 | value: "{{ workflow_debug }}" |
| 106 | - name: dry_run |
| 107 | value: "{{ workflow_dry_run }}" |
| 108 | |
| 109 | # Cleanup policy |
| 110 | ttlStrategy: |
| 111 | secondsAfterCompletion: 600 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished |
| 112 | secondsAfterSuccess: 600 # Time to live after workflow is successful |
| 113 | secondsAfterFailure: 900 # Time to live after workflow fails |
| 114 | |
| 115 | workflowTemplateRef: |
| 116 | name: full-create-ksu-generated-hr-wtf |