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

fix(sync): bump go-kong + fill auto fields with nil #139

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

samugi
Copy link
Member

@samugi samugi commented Sep 3, 2024

Summary

bump go-kong to 0.59.0

use go-kong utils to fill auto fields with nil in the config sent to the CP.
The rest of the default values are still not filled in the configuration that is sent out, as they are meant to be filled by the CP itself.

Full changelog

  • [Implement ...]
  • [Fix ...]

Issues resolved

https://konghq.atlassian.net/browse/KAG-5317

Documentation

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

@samugi samugi marked this pull request as draft September 3, 2024 15:38
Fill auto fields with nil in the config sent to the CP.
The rest of the default values are still not filled in the configuration
that is sent out, as they are meant to be filled by the CP itself, but
auto fields should not be generated, to ensure the configuration remains
truly "declarative".
@samugi samugi force-pushed the fix/fill-auto-fields-with-nil branch from 2b89ba7 to fdbf4dc Compare September 4, 2024 07:52
@codecov-commenter
Copy link

codecov-commenter commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 29.96%. Comparing base (0b1b75f) to head (80d5c9c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/diff/diff.go 0.00% 8 Missing ⚠️
pkg/types/plugin.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #139      +/-   ##
==========================================
- Coverage   29.97%   29.96%   -0.01%     
==========================================
  Files         106      106              
  Lines       12581    12583       +2     
==========================================
  Hits         3771     3771              
- Misses       8350     8352       +2     
  Partials      460      460              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samugi samugi marked this pull request as ready for review September 4, 2024 07:55
Copy link
Member

@bungle bungle left a comment

Choose a reason for hiding this comment

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

I still do not think this is good to have.

pkg/diff/diff.go Show resolved Hide resolved
Copy link
Member

@bungle bungle left a comment

Choose a reason for hiding this comment

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

With a slight disagreement, ;-), I approve this.

@samugi samugi changed the title fix(sync): fill auto fields with nil fix(sync): bump go-kong + fill auto fields with nil Sep 5, 2024
@randmonkey randmonkey enabled auto-merge (squash) September 5, 2024 08:03
@randmonkey randmonkey merged commit 7c622bd into main Sep 5, 2024
18 checks passed
@randmonkey randmonkey deleted the fix/fill-auto-fields-with-nil branch September 5, 2024 08:06
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.

5 participants