Skip to content

Commit e6dd56a

Browse files
authored
FLPATH-2318 - Add Orchestrator deployment to RHDH CI (#2915)
1 parent 634f183 commit e6dd56a

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

.ibm/pipelines/utils.sh

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,18 @@ cluster_setup_k8s_helm() {
843843
# install_crunchy_postgres_k8s_operator # Works with K8s but disabled in values file
844844
}
845845

846+
install_orchestrator_infra_chart() {
847+
ORCH_INFRA_NS="orchestrator-infra"
848+
configure_namespace ${ORCH_INFRA_NS}
849+
850+
echo "Deploying orchestrator-infra chart"
851+
cd "${DIR}"
852+
helm upgrade -i orch-infra -n "${ORCH_INFRA_NS}" \
853+
"oci://quay.io/rhdh/orchestrator-infra-chart" --version "${CHART_VERSION}" \
854+
--set serverlessLogicOperator.subscription.spec.installPlanApproval=Automatic \
855+
--set serverlessOperator.subscription.spec.installPlanApproval=Automatic
856+
}
857+
846858
# Helper function to get common helm set parameters
847859
get_image_helm_set_params() {
848860
local params=""
@@ -863,7 +875,7 @@ perform_helm_install() {
863875
local release_name=$1
864876
local namespace=$2
865877
local value_file=$3
866-
878+
867879
helm upgrade -i "${release_name}" -n "${namespace}" \
868880
"${HELM_CHART_URL}" --version "${CHART_VERSION}" \
869881
-f "${DIR}/value_files/${value_file}" \
@@ -875,6 +887,10 @@ base_deployment() {
875887
configure_namespace ${NAME_SPACE}
876888

877889
deploy_redis_cache "${NAME_SPACE}"
890+
891+
install_orchestrator_infra_chart
892+
893+
cd "${DIR}"
878894
local rhdh_base_url="https://${RELEASE_NAME}-developer-hub-${NAME_SPACE}.${K8S_CLUSTER_ROUTER_BASE}"
879895
apply_yaml_files "${DIR}" "${NAME_SPACE}" "${rhdh_base_url}"
880896
echo "Deploying image from repository: ${QUAY_REPO}, TAG_NAME: ${TAG_NAME}, in NAME_SPACE: ${NAME_SPACE}"
@@ -986,7 +1002,8 @@ initiate_sanity_plugin_checks_deployment() {
9861002
"${HELM_CHART_URL}" --version "${CHART_VERSION}" \
9871003
-f "/tmp/${HELM_CHART_SANITY_PLUGINS_MERGED_VALUE_FILE_NAME}" \
9881004
--set global.clusterRouterBase="${K8S_CLUSTER_ROUTER_BASE}" \
989-
$(get_image_helm_set_params)
1005+
$(get_image_helm_set_params) \
1006+
--set orchestrator.enabled=true
9901007
}
9911008

9921009
check_and_test() {

.ibm/pipelines/value_files/values_showcase.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,3 +315,24 @@ upstream:
315315
- name: http-metrics
316316
port: 9464
317317
targetPort: 9464
318+
319+
orchestrator:
320+
enabled: true
321+
serverlessLogicOperator:
322+
enabled: true
323+
serverlessOperator:
324+
enabled: true
325+
sonataflowPlatform:
326+
monitoring:
327+
enabled: true
328+
eventing:
329+
broker:
330+
name: ""
331+
namespace: ""
332+
resources:
333+
requests:
334+
memory: "64Mi"
335+
cpu: "250m"
336+
limits:
337+
memory: "1Gi"
338+
cpu: "500m"

0 commit comments

Comments
 (0)