Skip to content

Add feature flags to v1 app manifests#4358

Merged
philippthun merged 2 commits intocloudfoundry:mainfrom
sap-contributions:features-in-manifest
Jun 2, 2025
Merged

Add feature flags to v1 app manifests#4358
philippthun merged 2 commits intocloudfoundry:mainfrom
sap-contributions:features-in-manifest

Conversation

@philippthun
Copy link
Member

@philippthun philippthun commented May 13, 2025

Allow app features to be set via manifest. Features are specified as follows (per app):

features:
    ssh: true
    revisions: true
    service-binding-k8s: false
    file-based-vcap-services: false

Features are shown in the generated manifest for an app (GET /v3/apps/:guid/manifest) and taken into account when calculating the manifest diff (POST /v3/spaces/:guid/manifest_diff).

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@philippthun philippthun changed the title Add feature flags to V3 manifests (read-only) Add feature flags to v1 app manifests May 13, 2025
@philippthun philippthun force-pushed the features-in-manifest branch from d5d3d87 to 1cf79e1 Compare May 13, 2025 13:49
- introduce AppFeatures helper containing constants and the mapping to
  database columns
- add FeaturesPresenter
- wire into AppManifestPresenter
- update request and unit tests for new 'features' hash
@philippthun philippthun force-pushed the features-in-manifest branch 4 times, most recently from 4fe3f45 to 1a06b43 Compare May 20, 2025 09:21
@philippthun philippthun force-pushed the features-in-manifest branch 2 times, most recently from 05aa06f to e770c0f Compare May 27, 2025 15:46
@philippthun philippthun marked this pull request as ready for review May 27, 2025 15:54
- add bulk_update method to AppFeatureUpdate
- add features to manifest message
- call AppFeatureUpdate from AppApplyManifest
- add features to SpaceDiffManifest
- update API docs
@philippthun philippthun force-pushed the features-in-manifest branch from e770c0f to 3f5781b Compare June 2, 2025 09:20
@philippthun philippthun merged commit d04c8c7 into cloudfoundry:main Jun 2, 2025
13 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Jun 2, 2025
Changes in cloud_controller_ng:

- Add feature flags to v1 app manifests
    PR: cloudfoundry/cloud_controller_ng#4358
    Author: Philipp Thun <philipp.thun@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants