-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add skip_check_for_pending_changes option to broker
This flag controls whether "update-service" fails with a broker.PendingChangesNotAppliedError or succeeds in the event that the previous manifest does not match the new manifest. This check disallows a developer from updating their service instance when an upgrade is pending - putting the control for rolling out a new version of software in the handles of the platform engineer. In many cases, a platform engineer may want to delegate the update to the developer anyway. This is a feature flag to allow the platform engineer to permit updates even if the manifest is changing and effectively an upgrade is applied.
- Loading branch information
Showing
6 changed files
with
174 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 changes: 134 additions & 0 deletions
134
config/test_assets/good_config_with_skip_check_for_pending_changes.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
# Copyright (C) 2016-Present Pivotal Software, Inc. All rights reserved. | ||
# This program and the accompanying materials are made available under the terms of the 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. | ||
|
||
--- | ||
broker: | ||
port: 8080 | ||
username: username | ||
password: password | ||
disable_ssl_cert_verification: true | ||
startup_banner: false | ||
shutdown_timeout_in_seconds: 10 | ||
use_stdin: true | ||
enable_telemetry: true | ||
support_backup_agent_binding: true | ||
enable_persist_manifest: true | ||
skip_check_for_pending_changes: true | ||
bosh: | ||
url: some-url | ||
root_ca_cert: some-cert | ||
authentication: | ||
basic: | ||
username: some-username | ||
password: some-password | ||
cf: | ||
url: some-cf-url | ||
root_ca_cert: some-cf-cert | ||
uaa: | ||
url: a-uaa-url | ||
client_definition: | ||
scopes: scope1,scope2 | ||
authorities: authority1,authority2 | ||
authorized_grant_types: grant_type1,grant_type2 | ||
resource_ids: resource2,resource3 | ||
name: client_name | ||
allowpublic: true | ||
authentication: | ||
user_credentials: | ||
username: some-cf-username | ||
password: some-cf-password | ||
service_instances_api: | ||
url: some-si-api-url | ||
root_ca_cert: some-cert | ||
authentication: | ||
basic: | ||
username: si-api-username | ||
password: si-api-password | ||
service_adapter: | ||
path: test_assets/executable.sh | ||
service_deployment: | ||
releases: | ||
- name: some-name | ||
version: some-version | ||
jobs: [some-job] | ||
stemcells: | ||
- os: ubuntu-trusty | ||
version: 1234 | ||
service_catalog: | ||
id: some-id | ||
service_name: some-marketplace-name | ||
service_description: some-description | ||
bindable: true | ||
plan_updatable: true | ||
dashboard_client: | ||
id: "client-id-1" | ||
secret: "secret-1" | ||
redirect_uri: "https://dashboard.url" | ||
metadata: | ||
display_name: some-service-display-name | ||
image_url: "http://test.jpg" | ||
long_description: "Some description" | ||
provider_display_name: "some name" | ||
documentation_url: "some url" | ||
support_url: "some url" | ||
shareable: true | ||
tags: | ||
- some-tag | ||
- some-other-tag | ||
global_properties: | ||
global_foo: global_bar | ||
plans: | ||
- name: some-dedicated-name | ||
plan_id: some-dedicated-plan-id | ||
description: I'm a dedicated plan | ||
free: true | ||
update: | ||
canaries: 1 | ||
max_in_flight: 2 | ||
canary_watch_time: 1000-30000 | ||
update_watch_time: 1000-30000 | ||
serial: false | ||
metadata: | ||
display_name: Dedicated-Cluster | ||
bullets: | ||
- bullet one | ||
- bullet two | ||
- bullet three | ||
costs: | ||
- amount: | ||
usd: 99.0 | ||
eur: 49.0 | ||
unit: MONTHLY | ||
- amount: | ||
usd: 0.99 | ||
eur: 0.49 | ||
unit: 1GB of messages over 20GB | ||
quotas: | ||
service_instance_limit: 1 | ||
properties: | ||
persistence: true | ||
lifecycle_errands: | ||
post_deploy: | ||
- name: health-check | ||
instances: [redis-errand/0, redis-errand/1] | ||
pre_delete: | ||
- name: cleanup | ||
instances: [redis-errand/0] | ||
instance_groups: | ||
- name: redis-server | ||
vm_type: some-vm | ||
persistent_disk_type: some-disk | ||
instances: 34 | ||
networks: [ net1, net2 ] | ||
- name: redis-server-2 | ||
vm_type: some-vm-2 | ||
instances: 3 | ||
networks: [ net4, net5 ] | ||
- name: redis-errand | ||
vm_type: some-vm-3 | ||
instances: 2 | ||
networks: [ net5, net6 ] | ||
lifecycle: errand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters