-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpipelinerun-update.yml.j2
More file actions
149 lines (134 loc) · 5.05 KB
/
pipelinerun-update.yml.j2
File metadata and controls
149 lines (134 loc) · 5.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: "mas-update-{{ timestamp }}"
labels:
tekton.dev/pipeline: mas-update
spec:
pipelineRef:
name: mas-update
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
timeouts:
pipeline: "0"
params:
# Catalog version
# -------------------------------------------------------------------------
- name: mas_catalog_version
value: "{{ mas_catalog_version }}"
{%- if ibm_entitlement_key is defined and ibm_entitlement_key != "" %}
# TODO: What even uses this, nothing in the update pipeline should be using this
- name: ibm_entitlement_key
value: "{{ ibm_entitlement_key }}"
{%- endif %}
{%- if artifactory_username is defined and artifactory_username != "" %}
# Enable development catalogs
# -------------------------------------------------------------------------
- name: artifactory_username
value: "{{ artifactory_username }}"
- name: artifactory_token
value: "{{ artifactory_token }}"
{%- endif %}
{%- if skip_pre_check is defined and skip_pre_check != "" %}
# Skip pre-check
# -------------------------------------------------------------------------
- name: skip_pre_check
value: "{{ skip_pre_check }}"
{%- endif %}
{%- if db2_namespace is defined and db2_namespace != "" %}
# Db2 Update
# -------------------------------------------------------------------------
- name: db2_namespace
value: "{{ db2_namespace }}"
{%- endif %}
{%- if mongodb_namespace is defined and mongodb_namespace != "" %}
# MongoDb CE update
# -------------------------------------------------------------------------
- name: mongodb_action
value: "{{ mongodb_action }}"
- name: mongodb_namespace
value: "{{ mongodb_namespace }}"
- name: mongodb_version
value: "{{ mongodb_version }}"
- name: mongodb_replicas
value: "{{ mongodb_replicas }}"
{%- if mongodb_v5_upgrade is defined and mongodb_v5_upgrade != "" %}
- name: mongodb_v5_upgrade
value: "{{ mongodb_v5_upgrade }}"
{%- endif %}
{%- if mongodb_v6_upgrade is defined and mongodb_v6_upgrade != "" %}
- name: mongodb_v6_upgrade
value: "{{ mongodb_v6_upgrade }}"
{%- endif %}
{%- if mongodb_v7_upgrade is defined and mongodb_v7_upgrade != "" %}
- name: mongodb_v7_upgrade
value: "{{ mongodb_v7_upgrade }}"
{%- endif %}
{%- if mongodb_v8_upgrade is defined and mongodb_v8_upgrade != "" %}
- name: mongodb_v8_upgrade
value: "{{ mongodb_v8_upgrade }}"
{%- endif %}
{%- endif %}
{%- if kafka_namespace is defined and kafka_namespace != "" %}
# Kafka update
# -------------------------------------------------------------------------
- name: kafka_namespace
value: "{{ kafka_namespace }}"
- name: kafka_provider
value: "{{ kafka_provider }}"
{%- endif %}
{%- if cert_manager_action is defined and cert_manager_action != "" %}
# Cert-Manager migration
# -------------------------------------------------------------------------
- name: cert_manager_provider
value: "{{ cert_manager_provider }}"
- name: cert_manager_action
value: "{{ cert_manager_action }}"
{%- endif %}
{%- if grafana_v5_upgrade is defined and grafana_v5_upgrade != "" %}
# Grafana
# -------------------------------------------------------------------------
- name: grafana_v5_upgrade
value: "{{ grafana_v5_upgrade }}"
{%- endif %}
{%- if cpd_product_version is defined and cpd_product_version != "" %}
# CP4D
# -------------------------------------------------------------------------
# Target version
- name: cpd_product_version
value: "{{ cpd_product_version }}"
- name: cp4d_update
value: "{{ cp4d_update }}"
- name: cp4d_update_ws
value: "{{ cp4d_update_ws }}"
- name: cp4d_update_wml
value: "{{ cp4d_update_wml }}"
- name: cp4d_update_spark
value: "{{ cp4d_update_spark }}"
- name: cp4d_update_cognos
value: "{{ cp4d_update_cognos }}"
# Storage Classes
# To update CP4D we need to pass in the names of the same storage
# classes used when it was first installed
#
# TODO: Have the ansible collection handle this, we shouldn't need to
# pass this in via the pipelinerun parameters
- name: storage_class_rwx
value: "{{ storage_class_rwx }}"
- name: storage_class_rwo
value: "{{ storage_class_rwo }}"
# TODO: There should be a better way to handle this in the Ansible code
# without needing to pass this flag in
- name: skip_entitlement_key_flag
value: "{{ skip_entitlement_key_flag }}"
{%- endif %}
{%- if odh_to_rhoai_migration is defined and odh_to_rhoai_migration != "" %}
# AI Service Migration (ODH to RHOAI)
# -------------------------------------------------------------------------
- name: odh_to_rhoai_migration
value: "{{ odh_to_rhoai_migration }}"
{%- endif %}
{%- if aiservice_instance_ids is defined and aiservice_instance_ids != "" %}
- name: aiservice_instance_ids
value: "{{ aiservice_instance_ids }}"
{%- endif %}