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

Commit 4abd967

Browse files
Jaskanwal Pawarjenspinney
andcommitted
Fix worker schema
- We accidentally duplicated the `kubernetes` section, one of which was missing new keys we added over time and would sometimes be used instead of the correct, latest one - The new/correct schema was missing the `workloads_namespace` key as well though [#171826991] Co-authored-by: Jaskanwal Pawar <jpawar@pivotal.io> Co-authored-by: Jennifer Spinney <jspinney@pivotal.io>
1 parent 82ead28 commit 4abd967

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

lib/cloud_controller/config_schemas/worker_schema.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ class WorkerSchema < VCAP::Config
173173
token_file: String,
174174
},
175175
ca_file: String,
176+
workloads_namespace: String,
176177
optional(:kpack) => {
177178
builder_namespace: String,
178179
registry_service_account_name: String,
@@ -203,15 +204,6 @@ class WorkerSchema < VCAP::Config
203204
max_labels_per_resource: Integer,
204205
max_annotations_per_resource: Integer,
205206
internal_route_vip_range: String,
206-
207-
optional(:kubernetes) => {
208-
host_url: String,
209-
service_account: {
210-
token_file: String,
211-
},
212-
ca_file: String,
213-
workloads_namespace: String,
214-
},
215207
}
216208
end
217209
# rubocop:enable Metrics/BlockLength

0 commit comments

Comments
 (0)