cloudfoundry / cloudfoundry/cf-java-client

Metadata manifest attribute not supported

Offen
#1,296 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Java
Sterne
334
Forks
319
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne bei ApplicationManifestUtilsV3.read und write und verwende das bereitgestellte Manifest und die Ausgabe als Reproduktion. Verfolge, wie Metadaten während dieses Roundtrips dargestellt werden, erhalte die im Issue beschriebenen Labels und Annotationen und überprüfe, dass das resultierende Manifest sie beibehält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
50/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.