-
Notifications
You must be signed in to change notification settings - Fork 369
Expand file tree
/
Copy pathdeployment_updater_schema.rb
More file actions
189 lines (159 loc) · 5.84 KB
/
deployment_updater_schema.rb
File metadata and controls
189 lines (159 loc) · 5.84 KB
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
require 'vcap/config'
module VCAP::CloudController
module ConfigSchemas
class DeploymentUpdaterSchema < VCAP::Config
# rubocop:disable Metrics/BlockLength
define_schema do
{
logging: {
level: String, # debug, info, etc.
file: String, # Log file to use
syslog: String # Name to associate with syslog messages (should start with 'vcap.')
},
pid_filename: String, # Pid filename to use
optional(:storage_cli_config_file_buildpacks) => String,
optional(:storage_cli_config_file_packages) => String,
optional(:storage_cli_config_file_resource_pool) => String,
optional(:storage_cli_config_file_droplets) => String,
readiness_port: {
deployment_updater: Integer
},
optional(:max_migration_duration_in_minutes) => Integer,
db: {
optional(:database) => Hash, # db connection hash for sequel
max_connections: Integer, # max connections in the connection pool
pool_timeout: Integer, # timeout before raising an error when connection can't be established to the db
log_level: String, # debug, info, etc.
log_db_queries: bool,
ssl_verify_hostname: bool,
connection_validation_timeout: Integer,
optional(:ca_cert_path) => String,
optional(:connection_expiration_timeout) => Integer,
optional(:connection_expiration_random_delay) => Integer
},
index: Integer, # Component index (cc-0, cc-1, etc)
name: String, # Component name (api_z1, api_z2)
external_port: Integer,
tls_port: Integer,
internal_service_hostname: String,
external_domain: String,
external_protocol: String,
default_health_check_timeout: Integer,
maximum_health_check_timeout: Integer,
db_encryption_key: enum(String, NilClass),
optional(:database_encryption) => {
keys: Hash,
current_key_label: String,
optional(:pbkdf2_hmac_iterations) => Integer
},
cpu_weight_min_memory: Integer,
cpu_weight_max_memory: Integer,
default_app_memory: Integer,
default_app_disk_in_mb: Integer,
maximum_app_disk_in_mb: Integer,
instance_file_descriptor_limit: Integer,
additional_allowed_process_users: Array,
allow_docker_root_user: bool,
deployment_updater: {
update_frequency_in_seconds: Integer,
optional(:lock_key) => String,
optional(:lock_owner) => String
},
optional(:locket) => {
host: String,
port: Integer,
ca_file: String,
cert_file: String,
key_file: String
},
staging: {
auth: {
user: String,
password: String
},
timeout_in_seconds: Integer
},
diego: {
bbs: {
url: String,
ca_file: String,
cert_file: String,
key_file: String,
connect_timeout: Integer,
send_timeout: Integer,
receive_timeout: Integer
},
cc_uploader_url: String,
file_server_url: String,
lifecycle_bundles: Hash,
droplet_destinations: Hash,
pid_limit: Integer,
use_privileged_containers_for_running: bool,
use_privileged_containers_for_staging: bool,
optional(:temporary_oci_buildpack_mode) => enum('oci-phase-1', NilClass),
enable_declarative_asset_downloads: bool
},
app_log_revision: bool,
resource_pool: {
maximum_size: Integer,
minimum_size: Integer,
resource_directory_key: String,
fog_connection: Hash,
optional(:connection_config) => Hash,
fog_aws_storage_options: Hash,
fog_gcp_storage_options: Hash
},
buildpacks: {
buildpack_directory_key: String,
fog_connection: Hash,
optional(:connection_config) => Hash,
fog_aws_storage_options: Hash,
fog_gcp_storage_options: Hash
},
packages: {
max_package_size: Integer,
app_package_directory_key: String,
fog_connection: Hash,
optional(:connection_config) => Hash,
fog_aws_storage_options: Hash,
fog_gcp_storage_options: Hash
},
droplets: {
droplet_directory_key: String,
fog_connection: Hash,
optional(:connection_config) => Hash,
fog_aws_storage_options: Hash,
fog_gcp_storage_options: Hash
},
stacks_file: String,
optional(:publish_metrics) => bool,
optional(:prometheus_port) => Integer,
skip_cert_verify: bool,
optional(:credhub_api) => {
internal_url: String,
ca_cert_path: String
},
credential_references: {
interpolate_service_bindings: bool
},
optional(:routing_api) => {
url: String,
routing_client_name: String,
routing_client_secret: String
},
statsd_host: String,
statsd_port: Integer,
optional(:enable_statsd_metrics) => bool,
max_labels_per_resource: Integer,
max_annotations_per_resource: Integer,
custom_metric_tag_prefix_list: Array,
optional(:feature_flag_overrides) => Hash
}
end
# rubocop:enable Metrics/BlockLength
class << self
def configure_components(config); end
end
end
end
end