-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathuds.yml.j2
156 lines (144 loc) · 4.85 KB
/
uds.yml.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: mas-devops-uds
spec:
params:
{{ lookup('template', task_src_dir ~ '/common/cli-params.yml.j2') | indent(4) }}
# What action to take
# 1. install - will install UDS
# 2. install-dro - will uninstall UDS (if installed) and then install DRO
# 3. uninstall - will uninstall either UDS or DRO, whichever is installed
- name: uds_action
type: string
description: What action to take (install, uninstall, install-dro)
default: "install"
- name: dro_migration
default: ""
type: string
description: Set to 'true' to Migration UDS to DRO
- name: mas_instance_id
type: string
default: ""
- name: custom_labels
type: string
description: Optional MAS custom labels, comma separated list of key=value pairs
default: ""
- name: ocp_ingress_tls_secret_name
type: string
default: ""
# Only used by UDS
- name: mas_segment_key
type: string
default: ""
- name: uds_event_scheduler_frequency
type: string
default: ""
- name: uds_storage_class
type: string
default: ""
# Only used by DRO
- name: ibm_entitlement_key
type: string
default: ""
- name: dro_namespace
type: string
default: "redhat-marketplace"
# Used by UDS & DRO
- name: uds_contact_email
type: string
default: ""
- name: uds_contact_firstname
type: string
default: ""
- name: uds_contact_lastname
type: string
default: ""
steps:
# IBM User Data Services (UDS)
# -------------------------------------------------------------------------
- name: uds
image: quay.io/ibmmas/cli:latest
imagePullPolicy: $(params.image_pull_policy)
workingDir: /workspace/configs
command:
- /opt/app-root/src/run-role.sh
- uds
env:
{{ lookup('template', task_src_dir ~ '/common/cli-env-nosuitename.yml.j2') | indent(8) }}
- name: DEVOPS_SUITE_NAME
value: dependencies-uds-$(params.uds_action)
# What action to take
- name: UDS_ACTION
value: $(params.uds_action)
# Configure storage & scheduling (on install)
- name: UDS_STORAGE_CLASS
value: $(params.uds_storage_class)
- name: UDS_EVENT_SCHEDULER_FREQUENCY
value: $(params.uds_event_scheduler_frequency)
# Properties for generating a MAS configuration
- name: MAS_CONFIG_DIR
value: /workspace/configs
- name: MAS_INSTANCE_ID
value: $(params.mas_instance_id)
- name: OCP_INGRESS_TLS_SECRET_NAME
value: $(params.ocp_ingress_tls_secret_name)
- name: MAS_POD_TEMPLATES_DIR
value: /workspace/pod-templates
- name: CUSTOM_LABELS
value: $(params.custom_labels)
- name: MAS_SEGMENT_KEY
value: $(params.mas_segment_key)
- name: UDS_CONTACT_EMAIL
value: $(params.uds_contact_email)
- name: UDS_CONTACT_FIRSTNAME
value: $(params.uds_contact_firstname)
- name: UDS_CONTACT_LASTNAME
value: $(params.uds_contact_lastname)
# IBM Data Reporter Operator (DRO)
# -------------------------------------------------------------------------
- name: dro
image: quay.io/ibmmas/cli:latest
imagePullPolicy: $(params.image_pull_policy)
workingDir: /workspace/configs
command:
- /opt/app-root/src/run-role.sh
- dro
env:
{{ lookup('template', task_src_dir ~ '/common/cli-env-nosuitename.yml.j2') | indent(8) }}
- name: DEVOPS_SUITE_NAME
value: dependencies-dro-$(params.uds_action)
# What action to take
- name: DRO_ACTION
value: $(params.uds_action)
# Properties for generating a MAS configuration
- name: MAS_CONFIG_DIR
value: /workspace/configs
- name: MAS_INSTANCE_ID
value: $(params.mas_instance_id)
- name: OCP_INGRESS_TLS_SECRET_NAME
value: $(params.ocp_ingress_tls_secret_name)
- name: MAS_POD_TEMPLATES_DIR
value: /workspace/pod-templates
- name: CUSTOM_LABELS
value: $(params.custom_labels)
- name: IBM_ENTITLEMENT_KEY
value: $(params.ibm_entitlement_key)
- name: DRO_CONTACT_EMAIL
value: $(params.uds_contact_email)
- name: DRO_CONTACT_FIRSTNAME
value: $(params.uds_contact_firstname)
- name: DRO_CONTACT_LASTNAME
value: $(params.uds_contact_lastname)
- name: DRO_MIGRATION
value: $(params.dro_migration)
- name: DRO_STORAGE_CLASS
value: $(params.uds_storage_class)
- name: DRO_NAMESPACE
value: $(params.dro_namespace)
workspaces:
- name: configs
optional: true
- name: pod-templates
optional: true