From 45779ff187cea5082b1cbffe6671ec2b1e0e7bf1 Mon Sep 17 00:00:00 2001 From: Stephan Merker Date: Wed, 4 Dec 2024 13:02:01 +0100 Subject: [PATCH 1/2] Add ops file to enable CF api v2 - enable-v2-api.yml can be used by operators to re-enable v2 once it gets disabled by default (~Q1 25) - there is an experimental ops file disable-v2-api.yml which will be deprecated and removed later --- operations/README.md | 1 + operations/enable-v2-api.yml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 operations/enable-v2-api.yml diff --git a/operations/README.md b/operations/README.md index 79ba12f1b..1e326202a 100644 --- a/operations/README.md +++ b/operations/README.md @@ -46,6 +46,7 @@ This is the README for Ops-files. To learn more about `cf-deployment`, go to the | [`enable-service-discovery.yml`](enable-service-discovery.yml) | Enables application service discovery | | **YES** | | [`enable-smb-volume-service.yml`](enable-smb-volume-service.yml) | Enables volume support and deploys an SMB broker and volume driver | As of cf-deployment v2, you must use the `smbbrokerpush` errand to cf push the smb broker after `bosh deploy` completes. | **NO** | | [`enable-tls-on-file-server.yml`](enable-tls-on-file-server.yml) | Enables TLS on file-server for assets | Enables downloading lifecycle assets over HTTPS | **NO** | +| [`enable-v2-api.yml`](enable-v2-api.yml) | Enable Cloud Controller API v2 endpoints | | **NO** | | [`override-app-domains.yml`](override-app-domains.yml) | Switches from using the system domain as a shared app domain; allows the configuration of one or more shared app domains instead. | Adds [new variables](example-vars-files/vars-override-app-domains.yml).
**CAUTION:** Seeding domains with a router group name (including TCP domains) may cause problems deploying. Please use the `cf` CLI to add shared domains with router group names. | **NO** | | [`rename-network-and-deployment.yml`](rename-network-and-deployment.yml) | Allows a deployer to rename the network and deployment by passing a variables `network_name` and `deployment_name` | **CAUTION:** If you are using this ops file along with another ops file that increases the number of instance groups (e.g. `perm-services.yml`), this ops file will not rename the network for those instance groups. | **YES** | | [`scale-database-cluster.yml`](scale-database-cluster.yml) | Scales cf-deployment database to 3 nodes across 3 zones (z1, z2, z3). | Cannot be used with postgres as it will not scale. | **YES** | diff --git a/operations/enable-v2-api.yml b/operations/enable-v2-api.yml new file mode 100644 index 000000000..acd485478 --- /dev/null +++ b/operations/enable-v2-api.yml @@ -0,0 +1,4 @@ +--- +- type: replace + path: /instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/temporary_enable_v2? + value: true From 7672274dc573e51a4694d064ad2f51857c5df42b Mon Sep 17 00:00:00 2001 From: Stephan Merker Date: Wed, 4 Dec 2024 16:53:03 +0100 Subject: [PATCH 2/2] Add enable-v2-api.yml to std tests --- units/tests/standard_test/operations.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/units/tests/standard_test/operations.yml b/units/tests/standard_test/operations.yml index bcfc08fc0..6408a75f6 100644 --- a/units/tests/standard_test/operations.yml +++ b/units/tests/standard_test/operations.yml @@ -29,6 +29,7 @@ enable-privileged-container-support.yml: {} enable-service-discovery.yml: {} enable-smb-volume-service.yml: {} enable-tls-on-file-server.yml: {} +enable-v2-api.yml: {} openstack.yml: {} override-app-domains.yml: varsfiles: