Skip to content

Commit a2e4437

Browse files
author
Bhautik Vala
committed
[patch] Add support for aiservice pipelinerun
1 parent b078b66 commit a2e4437

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

src/mas/devops/tekton.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,18 @@ def launchInstallPipeline(dynClient: DynamicClient, params: dict) -> str:
402402
return pipelineURL
403403

404404

405+
def launchInstallPipelineForAiservice(dynClient: DynamicClient, params: dict) -> str:
406+
"""
407+
Create a PipelineRun to install the chosen MAS instance (and selected dependencies)
408+
"""
409+
instanceId = params["mas_instance_id"]
410+
namespace = f"mas-{instanceId}-pipelines"
411+
timestamp = launchPipelineRun(dynClient, namespace, "pipelinerun-aiservice-install", params)
412+
413+
pipelineURL = f"{getConsoleURL(dynClient)}/k8s/ns/mas-{instanceId}-pipelines/tekton.dev~v1beta1~PipelineRun/{instanceId}-install-{timestamp}"
414+
return pipelineURL
415+
416+
405417
def launchUpdatePipeline(dynClient: DynamicClient, params: dict) -> str:
406418
"""
407419
Create a PipelineRun to update the Maximo Operator Catalog

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -574,32 +574,32 @@ spec:
574574
# -------------------------------------------------------------------------
575575
- name: shared-configs
576576
persistentVolumeClaim:
577-
claimName: config-pvc
577+
claimName: config-pvc-aiservice
578578

579579
# User-provided configurations
580580
# -------------------------------------------------------------------------
581581
# Any pre-generated configs that will be copied into the
582582
# shared-config during install-suite
583583
- name: shared-additional-configs
584584
secret:
585-
secretName: pipeline-additional-configs
585+
secretName: pipeline-additional-configs-aiservice
586586

587587
# SLS entitlement
588588
# -------------------------------------------------------------------------
589589
# The SLS entitlement key file that will be installed
590590
# during install-sls
591591
- name: shared-entitlement
592592
secret:
593-
secretName: pipeline-sls-entitlement
593+
secretName: pipeline-sls-entitlement-aiservice
594594

595595
# PodTemplates configurations
596596
# -------------------------------------------------------------------------
597597
- name: shared-pod-templates
598598
secret:
599-
secretName: pipeline-pod-templates
599+
secretName: pipeline-pod-templates-aiservice
600600

601601
# Certificates configurations
602602
# -------------------------------------------------------------------------
603603
- name: shared-certificates
604604
secret:
605-
secretName: pipeline-certificates
605+
secretName: pipeline-certificates-aiservice

0 commit comments

Comments
 (0)