cloudfoundry / cloudfoundry/cf-java-client
ManifestV3 toYaml labels and annotations not correctly mapped
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 334
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
When i try to set labels and annotations in the manifestV3 the generated yaml is incorrect:
"env" -> {Collections$UnmodifiableMap@13701} size = 5
"health-check-http-endpoint" -> "/actuator/health"
"health-check-type" -> "http"
"labels" -> {Collections$UnmodifiableMap@13707} size = 9
"name" -> "MYAPP"
"path" -> "/tmp/14212678060123353942.jar"
"routes" -> {ArrayList@13713} size = 2
"services" -> {ArrayList@13715} size = 3
But the labels and annotations have to be wrapped into a metadata field.
So cloud foundry doesn't update the labels and annotations
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the ManifestV3 toYaml conversion entry point and the code that maps labels and annotations. Reproduce the generated YAML from the reported manifest and verify that both fields are nested under metadata so Cloud Foundry updates them correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100