Skip to content

Commit c20fb45

Browse files
[minor] Add support for AI Broker into install PipelineRun template (#19)
Co-authored-by: David Parker <parkerda@uk.ibm.com>
1 parent cdfd6cd commit c20fb45

1 file changed

Lines changed: 92 additions & 0 deletions

File tree

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

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,98 @@ spec:
682682
- name: grafana_instance_storage_size
683683
value: "{{ grafana_instance_storage_size }}"
684684
{%- endif %}
685+
{%- if install_aibroker is defined and install_aibroker != "" %}
686+
687+
# AI Broker
688+
# -------------------------------------------------------------------------
689+
- name: install_aibroker
690+
value: "{{ install_aibroker }}"
691+
- name: mas_aibroker_channel
692+
value: "{{ mas_aibroker_channel }}"
693+
{%- endif %}
694+
{%- if mas_aibroker_storage_provider is defined and mas_aibroker_storage_provider != "" %}
695+
696+
# AI Broker - OpenData Hub Storage
697+
# -------------------------------------------------------------------------
698+
- name: mas_aibroker_storage_provider
699+
value: "{{ mas_aibroker_storage_provider }}"
700+
- name: mas_aibroker_storage_accesskey
701+
value: "{{ mas_aibroker_storage_accesskey }}"
702+
- name: mas_aibroker_storage_secretkey
703+
value: "{{ mas_aibroker_storage_secretkey }}"
704+
- name: mas_aibroker_storage_host
705+
value: "{{ mas_aibroker_storage_host }}"
706+
- name: mas_aibroker_storage_port
707+
value: "{{ mas_aibroker_storage_port }}"
708+
- name: mas_aibroker_storage_ssl
709+
value: "{{ mas_aibroker_storage_ssl }}"
710+
- name: mas_aibroker_storage_region
711+
value: "{{ mas_aibroker_storage_region }}"
712+
- name: mas_aibroker_storage_pipelines_bucket
713+
value: "{{ mas_aibroker_storage_pipelines_bucket }}"
714+
- name: mas_aibroker_storage_tenants_bucket
715+
value: "{{ mas_aibroker_storage_tenants_bucket }}"
716+
- name: mas_aibroker_storage_templates_bucket
717+
value: "{{ mas_aibroker_storage_templates_bucket }}"
718+
- name: mas_aibroker_tenant_name
719+
value: "{{ mas_aibroker_tenant_name }}"
720+
{%- endif %}
721+
{%- if mas_aibroker_controller_tag is defined and mas_aibroker_controller_tag != "" %}
722+
723+
# AI Broker - KModels Tags
724+
# -------------------------------------------------------------------------
725+
- name: mas_aibroker_controller_tag
726+
value: "{{ mas_aibroker_controller_tag }}"
727+
- name: mas_aibroker_store_tag
728+
value: "{{ mas_aibroker_store_tag }}"
729+
- name: mas_aibroker_watcher_tag
730+
value: "{{ mas_aibroker_watcher_tag }}"
731+
- name: mas_aibroker_connector_tag
732+
value: "{{ mas_aibroker_connector_tag }}"
733+
- name: mas_aibroker_pipeline_steps_tag
734+
value: "{{ mas_aibroker_pipeline_steps_tag }}"
735+
{%- endif %}
736+
{%- if mas_aibroker_watsonxai_apikey is defined and mas_aibroker_watsonxai_apikey != "" %}
737+
738+
# AI Broker - watsonX
739+
# -------------------------------------------------------------------------
740+
- name: mas_aibroker_watsonxai_apikey
741+
value: "{{ mas_aibroker_watsonxai_apikey }}"
742+
- name: mas_aibroker_watsonxai_url
743+
value: "{{ mas_aibroker_watsonxai_url }}"
744+
- name: mas_aibroker_watsonxai_project_id
745+
value: "{{ mas_aibroker_watsonxai_project_id }}"
746+
- name: mas_aibroker_watsonx_action
747+
value: "{{ mas_aibroker_watsonx_action }}"
748+
{%- endif %}
749+
{%- if mas_aibroker_s3_action is defined and mas_aibroker_s3_action != "" %}
750+
751+
# AI Broker - S3
752+
# -------------------------------------------------------------------------
753+
- name: mas_aibroker_s3_action
754+
value: "{{ mas_aibroker_s3_action }}"
755+
- name: mas_aibroker_apikey_action
756+
value: "{{ mas_aibroker_apikey_action }}"
757+
{%- endif %}
758+
{%- if mas_aibroker_db_host is defined and mas_aibroker_db_host != "" %}
759+
760+
# AI Broker - Database (DataSciencePipelinesApplication)
761+
# -------------------------------------------------------------------------
762+
- name: mas_aibroker_db_host
763+
value: "{{ mas_aibroker_db_host }}"
764+
- name: mas_aibroker_db_port
765+
value: "{{ mas_aibroker_db_port }}"
766+
- name: mas_aibroker_db_user
767+
value: "{{ mas_aibroker_db_user }}"
768+
- name: mas_aibroker_db_database
769+
value: "{{ mas_aibroker_db_database }}"
770+
- name: mas_aibroker_db_secret_name
771+
value: "{{ mas_aibroker_db_secret_name }}"
772+
- name: mas_aibroker_db_secret_key
773+
value: "{{ mas_aibroker_db_secret_key }}"
774+
- name: mas_aibroker_db_secret_value
775+
value: "{{ mas_aibroker_db_secret_value }}"
776+
{%- endif %}
685777

686778
workspaces:
687779
# The generated configuration files

0 commit comments

Comments
 (0)