feat!: moves object ids to top level attributes#177
Conversation
ajcraig
left a comment
There was a problem hiding this comment.
Couple items need addressed:
Desired state templates
- the
idin desired state is actually 2 items.-
- UUID of the app deployment managed via the WFM
-
- applicationId
-
- Appears the rendered markdowns are showing id at root, but annotations/application id in the metadata
iddoesn't have a descriptor- appears the top-level attributes table header has disappeared.
- Annotations attributes table is showing both
applicationIdandidwithin the table. These, I believe, should be in the top-level attributes.
@Silvanoc was the intent of your issue to move both uuid and application id in the deploymentprofiles to root?
Application Description
Check the attribute tables. It is currently showing two id elements. One in top-level attributes and one in metadata attributes.
- Top-level doesn't have a descirption / type / and states
Non required which would be a change from previous.
Examples look good in this section.
|
@ajcraig Thanks for the detailed review! Responses to your points below:
Is there any reason that we want these to be together? The kind: ApplicationDeployment
id: depl-1111-12hj-0000-0000
applicationId: app1-1111-1111-1111-1111
metadata: ....Or another example: kind: ApplicationDeployment
id: depl-1111-12hj-0000-0000
applicationRef: # renamed it intentionally to show it is a reference
id: app1-1111-1111-1111-1111
metadata: ....
I thought only
Will check this again. Thanks for pointing out!
Actually, I just copy pasted the fields, but the Plus, I didn't remove the nested |
I didn't see silvano moving this outside of the metadata:annotations. So I think for ApplicationDeployment yaml this can stay where it is. |
ba9eb9d to
416df46
Compare
BREAKING CHANGE: The 'id' field is no more available under 'annotations' object and must be accessed from the root level of the app deployment object. Closes: #163 Signed-off-by: Manjinder <manjinder.b.singh@capgemini.com>
BREAKING CHANGE: The 'id' field is no more available under 'metadata' object and must be accessed from the root level of the app description object. Closes: #162 Signed-off-by: Manjinder <manjinder.b.singh@capgemini.com>
Signed-off-by: Manjinder <manjinder.b.singh@capgemini.com>
…cases for app desc Signed-off-by: Manjinder <manjinder.b.singh@capgemini.com>
416df46 to
769001d
Compare
| schema: | ||
| type: string | ||
| description: UUID of the ApplicationDeployment (metadata.annotations.id) | ||
| description: UUID of the ApplicationDeployment |
There was a problem hiding this comment.
| description: UUID of the ApplicationDeployment | |
| description: Unique identifier for the application deployment |
| type: string | ||
| description: > | ||
| The unique UUID from the ApplicationDeployment's metadata.annotations.id. | ||
| The unique UUID from the ApplicationDeployment. |
There was a problem hiding this comment.
| The unique UUID from the ApplicationDeployment. | |
| Unique identifier for the application deployment. |
Fix jinja rendering of the top-level "id" attribute. Change WOS references to WFM. Signed-off-by: Manjinder <manjinder.b.singh@capgemini.com> Signed-off-by: Armand Craig <acraig@project.margo.org>
769001d to
1032799
Compare
ajcraig
left a comment
There was a problem hiding this comment.
Pending small fixes from Phil, approved. Looks good!
Also fixed my commit that was hanging on the CLA error.
|
Hey @singhmj-1! Thanks for moving this forward! Re-reading #163, I think the current PR implements only part of what we reached there. The thread concluded that the nested Given that, these are the missing pieces I see from #163:
The final shape I envision for A side note on Edit: tracked in #183 |
Description
The application description and deployment ids were nested under
metadataandannotationsfields, which in themselves are sub-fields in the respective definitions of app and deployment. This change moves them to the root-level objects i.e. they are accessible directly asAppDescription.IdandAppDeployment.Id.Issues Addressed
#161
Change Type
Please select the relevant options:
Checklist