Skip to content

Commit eaa7112

Browse files
committed
Remove lots of unnecessary params
1 parent bda0534 commit eaa7112

2 files changed

Lines changed: 38 additions & 183 deletions

File tree

src/mas/devops/templates/pipelinerun-aiservice-install.yml.j2

Lines changed: 36 additions & 180 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,13 @@ spec:
6565
- name: storage_class_rwo
6666
value: "{{ storage_class_rwo }}"
6767

68-
{%- if turbonomic_server_url is defined and turbonomic_server_url != "" %}
69-
70-
# Dependencies - Turbonomic
68+
# MAS Catalog
7169
# -------------------------------------------------------------------------
72-
- name: turbonomic_server_url
73-
value: "{{ turbonomic_server_url }}"
74-
- name: turbonomic_server_version
75-
value: "{{ turbonomic_server_version }}"
76-
- name: turbonomic_target_name
77-
value: "{{ turbonomic_target_name }}"
78-
- name: turbonomic_username
79-
value: "{{ turbonomic_username }}"
80-
- name: turbonomic_password
81-
value: "{{ turbonomic_password }}"
70+
- name: mas_catalog_version
71+
value: "{{ mas_catalog_version }}"
72+
{%- if mas_catalog_digest is defined and mas_catalog_digest != "" %}
73+
- name: mas_catalog_digest
74+
value: "{{ mas_catalog_digest }}"
8275
{%- endif %}
8376

8477
{%- if mongodb_action is defined and mongodb_action != "" %}
@@ -136,7 +129,19 @@ spec:
136129
- name: sls_action
137130
value: "{{ sls_action }}"
138131
{%- endif %}
132+
{%- if aiservice_sls_url is defined and aiservice_sls_url != "" %}
139133

134+
# Remote SLS
135+
# -------------------------------------------------------------------------
136+
- name: aiservice_sls_secret_name
137+
value: "{{ aiservice_sls_secret_name }}"
138+
- name: aiservice_sls_registration_key
139+
value: "{{ aiservice_sls_registration_key }}"
140+
- name: aiservice_sls_url
141+
value: "{{ aiservice_sls_url }}"
142+
- name: aiservice_sls_ca_cert
143+
value: "{{ aiservice_sls_ca_cert }}"
144+
{%- endif %}
140145

141146
# Dependencies - UDS/DRO (Required)
142147
# -------------------------------------------------------------------------
@@ -153,168 +158,30 @@ spec:
153158
value: "{{ dro_namespace }}"
154159
{%- endif %}
155160

156-
# MAS Catalog
157-
# -------------------------------------------------------------------------
158-
- name: mas_catalog_version
159-
value: "{{ mas_catalog_version }}"
160-
{%- if mas_catalog_digest is defined and mas_catalog_digest != "" %}
161-
- name: mas_catalog_digest
162-
value: "{{ mas_catalog_digest }}"
163-
{%- endif %}
164-
165161
# Dependencies - Certificate Manager
166162
# -------------------------------------------------------------------------
167163
- name: cert_manager_provider
168164
value: "{{ cert_manager_provider }}"
169165
- name: cert_manager_action
170166
value: "{{ cert_manager_action }}"
171-
{%- if dns_provider is defined and dns_provider != "" %}
172-
173-
# MAS DNS Integrations - General
174-
# -------------------------------------------------------------------------
175-
- name: dns_provider
176-
value: "{{ dns_provider }}"
177-
{%- if cloudflare_apitoken is defined and cloudflare_apitoken != "" %}
178-
179-
# MAS DNS Integrations - Cloudflare Support
180-
# -------------------------------------------------------------------------
181-
- name: cloudflare_email
182-
value: "{{ cloudflare_email }}"
183-
- name: cloudflare_apitoken
184-
value: "{{ cloudflare_apitoken }}"
185-
- name: cloudflare_zone
186-
value: "{{ cloudflare_zone }}"
187-
- name: cloudflare_subdomain
188-
value: "{{ cloudflare_subdomain }}"
189-
{%- endif %}
190-
{%- if cis_apikey is defined and cis_apikey != "" %}
191-
192-
# MAS DNS Integrations - CIS Support
193-
# -------------------------------------------------------------------------
194-
- name: cis_email
195-
value: "{{ cis_email }}"
196-
- name: cis_apikey
197-
value: "{{ cis_apikey }}"
198-
- name: cis_crn
199-
value: "{{ cis_crn }}"
200-
- name: cis_subdomain
201-
value: "{{ cis_subdomain }}"
202-
{%- endif %}
203-
{%- if cis_service_name is defined and cis_service_name != "" %}
204-
205-
# MAS DNS Integrations - CIS Security Enhancement Support
206-
# -------------------------------------------------------------------------
207-
- name: cis_service_name
208-
value: "{{ cis_service_name }}"
209-
- name: cis_enhanced_security
210-
value: "{{ cis_enhanced_security }}"
211-
- name: override_edge_certs
212-
value: "{{ override_edge_certs }}"
213-
- name: cis_proxy
214-
value: "{{ cis_proxy }}"
215-
{%- endif %}
216-
{%- endif %}
217-
{%- if aws_access_key_id is defined and aws_access_key_id != "" %}
218-
219-
# AWS basic info
220-
# -------------------------------------------------------------------------
221-
- name: aws_access_key_id
222-
value: "{{ aws_access_key_id }}"
223-
- name: aws_secret_access_key
224-
value: "{{ aws_secret_access_key }}"
225-
- name: aws_region
226-
value: "{{ aws_region }}"
227-
{%- endif %}
228-
{%- if route53_hosted_zone_name is defined and route53_hosted_zone_name != "" %}
229-
230-
# MAS DNS Integrations - AWS Route 53
231-
# -------------------------------------------------------------------------
232-
- name: route53_hosted_zone_name
233-
value: "{{ route53_hosted_zone_name }}"
234-
- name: route53_hosted_zone_region
235-
value: "{{ route53_hosted_zone_region }}"
236-
- name: route53_email
237-
value: "{{ route53_email }}"
238-
- name: route53_subdomain
239-
value: "{{ route53_subdomain }}"
240-
{%- endif %}
241-
{%- if mas_add_catalog is defined and mas_add_catalog != "" %}
242167

243-
# Data Dictionary
168+
# Dependencies - Db2
244169
# -------------------------------------------------------------------------
245-
- name: mas_add_catalog
246-
value: "{{ mas_add_catalog }}"
247-
- name: mas_add_channel
248-
value: "{{ mas_add_channel }}"
249-
{%- endif %}
170+
- name: db2_action_aiservice
171+
value: "{{ db2_action_aiservice }}"
250172

251-
# Common params
173+
# AI Service
252174
# -------------------------------------------------------------------------
175+
- name: mas_app_channel_aibroker
176+
value: "{{ mas_app_channel_aibroker }}"
177+
- name: environment_type
178+
value: "{{ environment_type }}"
253179
- name: aiservice_instance_id
254180
value: "{{ aiservice_instance_id }}"
255181
- name: mas_icr_cp
256182
value: "{{ mas_icr_cp }}"
257183
- name: mas_icr_cpopen
258184
value: "{{ mas_icr_cpopen }}"
259-
{%- if mas_trust_default_cas is defined and mas_trust_default_cas != "" %}
260-
- name: mas_trust_default_cas
261-
value: "{{ mas_trust_default_cas }}"
262-
{%- endif %}
263-
{%- if mas_manual_cert_mgmt is defined %}
264-
- name: mas_manual_cert_mgmt
265-
value: "{{ mas_manual_cert_mgmt }}"
266-
{%- endif %}
267-
268-
{%- if mas_app_channel_aibroker is defined and mas_app_channel_aibroker != "" %}
269-
270-
# AI Broker
271-
# -------------------------------------------------------------------------
272-
- name: mas_app_channel_aibroker
273-
value: "{{ mas_app_channel_aibroker }}"
274-
- name: install_minio_aiservice
275-
value: "{{ install_minio_aiservice }}"
276-
- name: install_mongo_aiservice
277-
value: "{{ install_mongo_aiservice }}"
278-
- name: install_sls_aiservice
279-
value: "{{ install_sls_aiservice }}"
280-
- name: install_dro_aiservice
281-
value: "{{ install_dro_aiservice }}"
282-
- name: install_db2_aiservice
283-
value: "{{ install_db2_aiservice }}"
284-
- name: aiservice_dro_secret_name
285-
value: "{{ aiservice_dro_secret_name }}"
286-
- name: aiservice_dro_api_key
287-
value: "{{ aiservice_dro_api_key }}"
288-
- name: aiservice_dro_url
289-
value: "{{ aiservice_dro_url }}"
290-
- name: aiservice_dro_ca_cert
291-
value: "{{ aiservice_dro_ca_cert }}"
292-
- name: aiservice_db2_username
293-
value: "{{ aiservice_db2_username }}"
294-
- name: aiservice_db2_password
295-
value: "{{ aiservice_db2_password }}"
296-
- name: aiservice_db2_jdbc_url
297-
value: "{{ aiservice_db2_jdbc_url }}"
298-
- name: aiservice_db2_ssl_enabled
299-
value: "{{ aiservice_db2_ssl_enabled }}"
300-
- name: aiservice_db2_ca_cert
301-
value: "{{ aiservice_db2_ca_cert }}"
302-
- name: aiservice_sls_secret_name
303-
value: "{{ aiservice_sls_secret_name }}"
304-
- name: aiservice_sls_registration_key
305-
value: "{{ aiservice_sls_registration_key }}"
306-
- name: aiservice_sls_url
307-
value: "{{ aiservice_sls_url }}"
308-
- name: aiservice_sls_ca_cert
309-
value: "{{ aiservice_sls_ca_cert }}"
310-
- name: environment_type
311-
value: "{{ environment_type }}"
312-
313-
{%- if install_db2_aiservice is defined and install_db2_aiservice == "false" %}
314-
- name: db2_action_aiservice
315-
value: "not_install"
316-
{%- endif %}
317-
318185

319186
# AI Service Tenant
320187
# -------------------------------------------------------------------------
@@ -334,22 +201,25 @@ spec:
334201
value: "{{ aiservice_tenant_s3_access_key }}"
335202
- name: aiservice_tenant_s3_secret_key
336203
value: "{{ aiservice_tenant_s3_secret_key }}"
204+
205+
# RSL
206+
# -------------------------------------------------------------------------
337207
- name: rsl_url
338208
value: "{{ rsl_url }}"
339209
- name: rsl_org_id
340210
value: "{{ rsl_org_id }}"
341211
- name: rsl_token
342212
value: "{{ rsl_token }}"
213+
214+
# S3 Buckets
215+
# -------------------------------------------------------------------------
343216
- name: aiservice_s3_bucket_prefix
344217
value: "{{ aiservice_s3_bucket_prefix }}"
345218
- name: aiservice_s3_region
346219
value: "{{ aiservice_s3_region }}"
347220
- name: aiservice_s3_endpoint_url
348221
value: "{{ aiservice_s3_endpoint_url }}"
349222

350-
{%- endif %}
351-
{%- if aiservice_storage_provider is defined and aiservice_storage_provider != "" %}
352-
353223
# AI Service - OpenData Hub Storage
354224
# -------------------------------------------------------------------------
355225
- name: aiservice_storage_provider
@@ -366,36 +236,22 @@ spec:
366236
value: "{{ aiservice_storage_ssl }}"
367237
- name: aiservice_storage_region
368238
value: "{{ aiservice_storage_region }}"
239+
369240
- name: aiservice_storage_pipelines_bucket
370241
value: "{{ aiservice_storage_pipelines_bucket }}"
371242
- name: aiservice_storage_tenants_bucket
372243
value: "{{ aiservice_storage_tenants_bucket }}"
373244
- name: aiservice_storage_templates_bucket
374245
value: "{{ aiservice_storage_templates_bucket }}"
246+
375247
- name: aiservice_tenant_name
376248
value: "{{ aiservice_tenant_name }}"
249+
377250
- name: minio_root_user
378251
value: "{{ minio_root_user }}"
379252
- name: minio_root_password
380253
value: "{{ minio_root_password }}"
381254

382-
{%- endif %}
383-
{%- if aiservice_controller_tag is defined and aiservice_controller_tag != "" %}
384-
385-
# AI Service - KModels Tags
386-
# -------------------------------------------------------------------------
387-
- name: aiservice_controller_tag
388-
value: "{{ aiservice_controller_tag }}"
389-
- name: aiservice_store_tag
390-
value: "{{ aiservice_store_tag }}"
391-
- name: aiservice_watcher_tag
392-
value: "{{ aiservice_watcher_tag }}"
393-
- name: aiservice_connector_tag
394-
value: "{{ aiservice_connector_tag }}"
395-
- name: aiservice_pipeline_steps_tag
396-
value: "{{ aiservice_pipeline_steps_tag }}"
397-
{%- endif %}
398-
{%- if aiservice_watsonxai_apikey is defined and aiservice_watsonxai_apikey != "" %}
399255

400256
# AI Service - watsonX
401257
# -------------------------------------------------------------------------
@@ -407,7 +263,7 @@ spec:
407263
value: "{{ aiservice_watsonxai_project_id }}"
408264
- name: aiservice_watsonx_action
409265
value: "{{ aiservice_watsonx_action }}"
410-
{%- endif %}
266+
411267
{%- if aiservice_s3_action is defined and aiservice_s3_action != "" %}
412268

413269
# AI Service - S3

src/mas/devops/templates/pipelinerun-install.yml.j2

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ spec:
112112
value: "{{ db2_action_system }}"
113113
- name: db2_action_manage
114114
value: "{{ db2_action_manage }}"
115+
- name: db2_action_facilities
116+
value: "{{ db2_action_facilities}}"
115117

116118
# Dependencies - Db2u Operator
117119
# -------------------------------------------------------------------------
@@ -769,9 +771,6 @@ spec:
769771
value: "{{ mas_ws_facilities_config_map_name }}"
770772
{%- endif %}
771773

772-
- name: db2_action_facilities
773-
value: "{{ db2_action_facilities}}"
774-
775774
{%- endif %}
776775

777776
workspaces:

0 commit comments

Comments
 (0)