-
Notifications
You must be signed in to change notification settings - Fork 11
/
variables.bzl
174 lines (157 loc) · 6.36 KB
/
variables.bzl
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# Copyright 2020 The Measurement System Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Make variable strings used by build targets in project.
"""
MEASUREMENT_SYSTEM_REPO = "https://github.com/world-federation-of-advertisers/cross-media-measurement"
# Settings for the repositories where container images are stored.
IMAGE_REPOSITORY_SETTINGS = struct(
# The container registry for targets which push or pull container images.
#
# For example, `gcr.io` for Google Cloud Container Registry or `docker.io`
# for DockerHub.
container_registry = "$(container_registry)",
# Common prefix of container image repositories.
repository_prefix = "$(image_repo_prefix)",
# Common tag for container images.
image_tag = "$(image_tag)",
)
# Settings for test Kubernetes deployments.
TEST_K8S_SETTINGS = struct(
# Resource name of the aggregator Duchy's Certificate.
aggregator_cert_name = "$(aggregator_cert_name)",
# Resource name of the 1st worker Duchy's Certificate.
worker1_cert_name = "$(worker1_cert_name)",
# Resource name of the 2nd worker Duchy's Certificate.
worker2_cert_name = "$(worker2_cert_name)",
mc_name = "$(mc_name)",
mc_api_key = "$(mc_api_key)",
mc_cert_name = "$(mc_cert_name)",
edp1_name = "$(edp1_name)",
edp1_cert_name = "$(edp1_cert_name)",
edp2_name = "$(edp2_name)",
edp2_cert_name = "$(edp2_cert_name)",
edp3_name = "$(edp3_name)",
edp3_cert_name = "$(edp3_cert_name)",
edp4_name = "$(edp4_name)",
edp4_cert_name = "$(edp4_cert_name)",
edp5_name = "$(edp5_name)",
edp5_cert_name = "$(edp5_cert_name)",
edp6_name = "$(edp6_name)",
edp6_cert_name = "$(edp6_cert_name)",
db_secret_name = "$(k8s_db_secret_name)",
mc_config_secret_name = "$(k8s_mc_config_secret_name)",
grafana_secret_name = "$(k8s_grafana_secret_name)",
)
GCLOUD_SETTINGS = struct(
project = "$(google_cloud_project)",
spanner_instance = "$(spanner_instance)",
postgres_instance = "$(postgres_instance)",
postgres_region = "$(postgres_region)",
)
AWS_SETTINGS = struct(
postgres_host = "$(postgres_host)",
postgres_port = "$(postgres_port)",
postgres_credential_secret_name = "$(postgres_credential_secret_name)",
postgres_region = "$(postgres_region)",
s3_bucket = "$(s3_bucket)",
s3_region = "$(s3_region)",
amp_ingest_endpoint = "$(amp_ingest_endpoint)",
amp_region = "$(amp_region)",
kms_key_arn = "$(kms_key_arn)",
private_ca_arn = "$(private_ca_arn)",
)
# Settings for Kingdom Kubernetes deployments.
KINGDOM_K8S_SETTINGS = struct(
public_api_target = "$(kingdom_public_api_target)",
system_api_target = "$(kingdom_system_api_target)",
public_api_address_name = "$(kingdom_public_api_address_name)",
system_api_address_name = "$(kingdom_system_api_address_name)",
)
# Settings for Duchy Kubernetes deployments.
DUCHY_K8S_SETTINGS = struct(
certificate_id = "$(duchy_cert_id)",
storage_bucket = "$(duchy_storage_bucket)",
worker1_public_api_target = "$(worker1_public_api_target)",
worker2_public_api_target = "$(worker2_public_api_target)",
aggregator_system_api_target = "$(aggregator_system_api_target)",
worker1_system_api_target = "$(worker1_system_api_target)",
worker2_system_api_target = "$(worker2_system_api_target)",
worker1_id = "$(worker1_id)",
worker2_id = "$(worker2_id)",
public_api_address_name = "$(duchy_public_api_address_name)",
system_api_address_name = "$(duchy_system_api_address_name)",
public_api_eip_allocs = "$(duchy_public_api_eip_allocs)",
system_api_eip_allocs = "$(duchy_system_api_eip_allocs)",
)
# Settings for Reporting Kubernetes deployments.
REPORTING_K8S_SETTINGS = struct(
public_api_address_name = "$(reporting_public_api_address_name)",
)
# Settings for simulator Kubernetes deployments.
SIMULATOR_K8S_SETTINGS = struct(
mc_name = "$(mc_name)",
mc_api_key = "$(mc_api_key)",
edp1_name = "$(edp1_name)",
edp1_cert_name = "$(edp1_cert_name)",
edp2_name = "$(edp2_name)",
edp2_cert_name = "$(edp2_cert_name)",
edp3_name = "$(edp3_name)",
edp3_cert_name = "$(edp3_cert_name)",
edp4_name = "$(edp4_name)",
edp4_cert_name = "$(edp4_cert_name)",
edp5_name = "$(edp5_name)",
edp5_cert_name = "$(edp5_cert_name)",
edp6_name = "$(edp6_name)",
edp6_cert_name = "$(edp6_cert_name)",
)
# Settings for Grafana Kubernetes deployments.
GRAFANA_K8S_SETTINGS = struct(
secret_name = "$(k8s_grafana_secret_name)",
)
PANEL_EXCHANGE_SETTINGS = struct(
party_type = "$(party_type)",
party_id = "$(party_id)",
recurring_exchange_ids = "$(recurring_exchange_ids)",
cluster_service_account_name = "$(cluster_service_account_name)",
private_storage_bucket = "$(private_storage_bucket)",
dataflow_region = "$(dataflow_region)",
dataflow_temp_storage_bucket = "$(dataflow_temp_storage_bucket)",
kms_region = "$(kms_region)",
kms_key_ring = "$(kms_key_ring)",
kms_key = "$(kms_key)",
private_ca_region = "$(private_ca_region)",
private_ca_name = "$(private_ca_name)",
private_ca_pool_id = "$(private_ca_pool_id)",
cert_common_name = "$(cert_common_name)",
cert_organization = "$(cert_organization)",
cert_dns_name = "$(cert_dns_name)",
)
# Config for Panel Exchange Client Example Daemon.
EXAMPLE_PANEL_EXCHANGE_CLIENT_DAEMON_CONFIG = struct(
edp_name = "$(edp_name)",
mp_name = "$(mp_name)",
)
# Config for Kingdom-less Panel Exchange Client Example Daemon.
EXAMPLE_KINGDOMLESS_PANEL_EXCHANGE_CLIENT_DAEMON_CONFIG = struct(
edp_id = "$(edp_id)",
mp_id = "$(mp_id)",
recurring_exchange_ids = "$(recurring_exchange_ids)",
)
# Settings for deploying tests to Google Cloud.
PANEL_EXCHANGE_CLIENT_TEST_GOOGLE_CLOUD_SETTINGS = struct(
secret_name = "$(k8s_secret_name)",
cloud_storage_project = "$(cloud_storage_project)",
cloud_storage_bucket = "$(cloud_storage_bucket)",
)