Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[minor] Tekton updates for Group Sync Operator #1402

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading