Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 09d1445

Browse files
committed
make loggregator config optional -- sometimes we only want fluent
[#172415438] Authored-by: Connor Braa <cbraa@pivotal.io>
1 parent 4f09dc4 commit 09d1445

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

lib/cloud_controller/config_schemas/api_schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class ApiSchema < VCAP::Config
217217
subject_name: String
218218
},
219219

220-
loggregator: {
220+
optional(:loggregator) => {
221221
router: String,
222222
internal_url: String,
223223
},

lib/cloud_controller/config_schemas/clock_schema.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,15 @@ class ClockSchema < VCAP::Config
117117
optional(:uaa_client_secret) => String,
118118
optional(:uaa_client_scope) => String,
119119

120-
loggregator: {
120+
optional(:loggregator) => {
121121
router: String,
122122
},
123123

124+
optional(:fluent) => {
125+
optional(:host) => String,
126+
optional(:port) => Integer,
127+
},
128+
124129
skip_cert_verify: bool,
125130

126131
optional(:routing_api) => {

lib/cloud_controller/config_schemas/worker_schema.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,15 @@ class WorkerSchema < VCAP::Config
121121
interpolate_service_bindings: bool
122122
},
123123

124-
loggregator: {
124+
optional(:loggregator) => {
125125
router: String,
126126
},
127127

128+
optional(:fluent) => {
129+
optional(:host) => String,
130+
optional(:port) => Integer,
131+
},
132+
128133
skip_cert_verify: bool,
129134

130135
optional(:routing_api) => {

0 commit comments

Comments
 (0)