Skip to content

Correctly map metadata#1200

Closed
JakobFels wants to merge 2 commits intocloudfoundry:mainfrom
JakobFels:gh-1188-correctly-map-metadata
Closed

Correctly map metadata#1200
JakobFels wants to merge 2 commits intocloudfoundry:mainfrom
JakobFels:gh-1188-correctly-map-metadata

Conversation

@JakobFels
Copy link

Fixes #1188

This change will correctly write annotations and labels to a v3 manifest. When using v3 push labels and annotations were not correctly applied/serialized.

This change consists of 2 commits. The second one ensures backward compatibility with existing code setting labels or annotations, as to not require a new major version.

Labels and annotations need to be serialized under the `metadata` key.
This commit ensures that code that currently sets labels and annotations does not break
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 9, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@anthonydahanne
Copy link
Contributor

@JakobFels thank you for the contribution! We are working through PRs at the moment.

Could you please add integration test support to cover the new feature?

As an example, annotations checks can be seen in the integration-test module in places such as here

@Kehrlann
Copy link
Contributor

Closing as stale.

@Kehrlann Kehrlann closed this May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ManifestV3 toYaml labels and annotations not correctly mapped

4 participants