Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly map metadata #1200

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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

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
3 participants