cloudfoundry / cloudfoundry/cf-java-client
Metadata manifest attribute not supported
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 334
- Fork
- 319
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The cloud foundry app manifest supports a metadata attribute for setting labels and annotations: https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#metadata
However, this attribute seems to be ignored by the cf-java-client.
How to reproduce
Here is a minimal example that reproduces the issue:
ManifestV3 manifest = ApplicationManifestUtilsV3.read(Path.of("test-manifest-with-labels.yaml"));
ApplicationManifestUtilsV3.write(Path.of("test-manifest-result.yaml"), manifest);
Content of test-manifest-with-labels.yaml:
---
applications:
- name: test-app
memory: 1G
instances: 1
metadata:
labels:
test-label: "test-value"
Content of test-manifest-result.yaml after the snippet above has run:
---
applications:
- name: test-app
memory: 1G
instances: 1
As you can see, the metadata information has been removed. When using the cf-java-client to deploy such a manifest, the metadata labels and annotations are therefore discarded. I would expect the attributes mentioned in the cloud foundry documentation to be supported by this client library, including the metadata attribute.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da ApplicationManifestUtilsV3.read e write, utilizzando il manifest e l’output forniti come riproduzione. Traccia come vengono rappresentati i metadati durante questo round trip, preserva le etichette e le annotazioni descritte nell’issue e verifica che il manifest risultante le mantenga.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 50/100