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

[DO NOT MERGE] Upgrade to yaml v3 #688

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheSpiritXIII
Copy link
Member

One less dependency to manage.

Copy link
Collaborator

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

@TheSpiritXIII
Copy link
Member Author

Upon further review, this would be a risky change to merge. The reason being is that the yaml library is no longer maintained. Kubernetes is looking into forking it, but until then, this would be a breaking change.

Here's why: v2 serializes an object such as:

array:
- map
    key1: value1

While v3 would serialize the same object as:

array:
  - map
      key1: value1

Both are valid YAML and there is no way to customize this on the library-level.

If the user does absolutely nothing, this may break a user's scraping completely. For example, if this change brings the user's config over the 1 MiB limit for ConfigMaps, the user will have to enable compression if they even realize their scraping broke.

@TheSpiritXIII TheSpiritXIII changed the title Upgrade to yaml v3 [DO NOT MERGE] Upgrade to yaml v3 Dec 4, 2023
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.

None yet

3 participants