You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resulting diff has the top-level application memory value of "1024M" replacing the web process' memory value of "256M", even though the process memory has not been replaced.
Steps to Reproduce
Push an application with a manifest in which there's a top-level application field (e.g. memory) that is the same as a web process field.
Without altering the manifest file, use the space guid of the space that the above app is in to create a manifest diff e.g. cf curl /v3/spaces/<SPACE_GUID>/manifest_diff -X POST -H "Content-Type: application/x-yaml" -d @<PATH_TO_MANIFEST_FILE>
Observe that in the resulting diff, the web process value appears to be replaced by the top-level application value.
elenasharma
changed the title
manifest_diff showing diff where top-level app fields incorrectly replacing web process-level fields
manifest_diff showing diff where top-level app fields incorrectly are being compared to web process-level fields
Jun 7, 2021
After further discussion we've decided to ignore top-level memory and disk-quota keys, as they're not part of the supported, documented v3 manifest schema. Those keys will still have an impact when applying manifests or pushing applications in order to preserve backwards compatibility, however they will be ignored in visual app manifest diffs (the GET /v3/apps/:guid/manifest endpoint)
Thanks for submitting an issue to
cloud_controller_ng
. We are always trying to improve! To help us, please fill out the following template.Issue
The manifest_diff endpoint shows an incorrect diff when top-level application fields conflict with web process fields.
Context
When I create a manifest diff with a manifest like the following:
I get an incorrect diff result:
The resulting diff has the top-level application
memory
value of "1024M" replacing the web process'memory
value of "256M", even though the process memory has not been replaced.Steps to Reproduce
memory
) that is the same as a web process field.cf curl /v3/spaces/<SPACE_GUID>/manifest_diff -X POST -H "Content-Type: application/x-yaml" -d @<PATH_TO_MANIFEST_FILE>
Expected result
I would expect to see no diff, e.g.
Current result
The current result is a diff with a "replace":
The text was updated successfully, but these errors were encountered: