Skip to content

Conversation

@milinddethe15
Copy link
Contributor

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

New function to trim extra fields from YAML config.

  • clientutil/trimconfig.go: Added a new function TrimExtraFields that removes any fields from the YAML configuration that are not explicitly allowed.

Verification

  • clientutil/trimconfig_test.go: Added tests for the TrimExtraFields function to ensure it correctly filters out unwanted fields from the YAML configuration.

filtered[key] = value
}
}
return yaml.Marshal(filtered)
Copy link
Contributor

Choose a reason for hiding this comment

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

Isnt it kinda weird that we marshal it back to yaml just to parse it again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm.. Lets keep this simple and handle hedging_config field only seperately.

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.

2 participants