Skip to content

Commit

Permalink
update tekton pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
boonware committed Dec 11, 2024
1 parent ef65e80 commit 7367adb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tekton/src/pipelines/gitops/gitops-mas-cluster.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ spec:
- name: ingress
type: string
default: "false"
- name: group_sync_operator_cron_schedule
type: string
default: ''
- name: group_sync_operator_isv_tenant_url
type: string
default: ''
- name: group_sync_operator_isv_groups
type: string
default: ''
tasks:
- name: gitops-cluster
params:
Expand Down Expand Up @@ -221,6 +230,12 @@ spec:
value: $(params.dns_provider)
- name: ingress
value: $(params.ingress)
- name: group_sync_operator_cron_schedule
value: $(params.group_sync_operator_cron_schedule)
- name: group_sync_operator_isv_tenant_url
value: $(params.group_sync_operator_isv_tenant_url)
- name: group_sync_operator_isv_groups
value: $(params.group_sync_operator_isv_groups)
taskRef:
kind: Task
name: gitops-cluster
Expand Down
23 changes: 23 additions & 0 deletions tekton/src/tasks/gitops/gitops-cluster.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ spec:
- name: redhat_cert_manager_install_plan
type: string
default: "Automatic"

- name: group_sync_operator_cron_schedule
type: string
default: ''
- name: group_sync_operator_isv_tenant_url
type: string
default: ''
- name: group_sync_operator_isv_groups
type: string
default: ''

stepTemplate:
name: gitops-cluster
env:
Expand Down Expand Up @@ -158,6 +169,13 @@ spec:
- name: REDHAT_CERT_MANAGER_INSTALL_PLAN
value: $(params.redhat_cert_manager_install_plan)

- name: GROUP_SYNC_OPERATOR_CRON_SCHEDULE
value: $(params.group_sync_operator_cron_schedule)
- name: GROUP_SYNC_OPERATOR_ISV_TENANT_URL
value: $(params.group_sync_operator_isv_tenant_url)
- name: GROUP_SYNC_OPERATOR_ISV_GROUPS
value: $(params.group_sync_operator_isv_groups)

envFrom:
- configMapRef:
name: environment-properties
Expand Down Expand Up @@ -188,6 +206,11 @@ spec:
export CLUSTER_PROMOTION=true
fi

if [[ -n "${GROUP_SYNC_OPERATOR_ISV_GROUPS}" ]];then
echo "Setting var INSTALL_GROUP_SYNC_OPERATOR to true as var GROUP_SYNC_OPERATOR_ISV_GROUPS is set"
export INSTALL_GROUP_SYNC_OPERATOR=true
fi

mkdir -p /tmp/init-cluster
mas gitops-cluster -a $ACCOUNT -c $CLUSTER_NAME \
--dir /tmp/init-cluster \
Expand Down

0 comments on commit 7367adb

Please sign in to comment.