diff --git a/tekton/src/pipelines/gitops/gitops-mas-cluster.yml.j2 b/tekton/src/pipelines/gitops/gitops-mas-cluster.yml.j2 index a20347e7b5..b66e751e39 100644 --- a/tekton/src/pipelines/gitops/gitops-mas-cluster.yml.j2 +++ b/tekton/src/pipelines/gitops/gitops-mas-cluster.yml.j2 @@ -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: @@ -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 diff --git a/tekton/src/tasks/gitops/gitops-cluster.yml.j2 b/tekton/src/tasks/gitops/gitops-cluster.yml.j2 index 11da6b58e4..bfa5708fd5 100644 --- a/tekton/src/tasks/gitops/gitops-cluster.yml.j2 +++ b/tekton/src/tasks/gitops/gitops-cluster.yml.j2 @@ -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: @@ -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 @@ -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 \