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

feat: populate Programmed condition for KongConsumerGroup #4423

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

programmer04
Copy link
Member

@programmer04 programmer04 commented Jul 28, 2023

What this PR does / why we need it:

Populates Programmed condition for KongConsumerGroup and prints an additional column PROGRAMMED for this CRD as introduced in #4425 for others.

Which issue this PR fixes:

Part of #3728

Special notes for your reviewer:

Something to discuss - I decided to check in the integration test if the condition is populated correctly because the duration of this check is ~3 seconds, hence it's negligible for an overall length of execution ~2.5%. Unfortunately, it has been written in this verbose way, because stretchr/testify#1391 hasn't been resolved yet.

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@programmer04 programmer04 added area/feature New feature or request area/CRD Changes in existing CRDs or introduction of new ones labels Jul 28, 2023
@programmer04 programmer04 added this to the KIC v2.11.0 milestone Jul 28, 2023
@programmer04 programmer04 self-assigned this Jul 28, 2023
@programmer04 programmer04 marked this pull request as ready for review July 28, 2023 08:02
@programmer04 programmer04 requested a review from a team as a code owner July 28, 2023 08:02
@programmer04 programmer04 enabled auto-merge (squash) July 28, 2023 08:03
@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Patch coverage: 88.0% and project coverage change: +0.6% 🎉

Comparison is base (964f9d2) 67.1% compared to head (a7dd691) 67.8%.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #4423     +/-   ##
=======================================
+ Coverage   67.1%   67.8%   +0.6%     
=======================================
  Files        159     159             
  Lines      18749   18772     +23     
=======================================
+ Hits       12598   12738    +140     
+ Misses      5386    5266    -120     
- Partials     765     768      +3     
Files Changed Coverage Δ
...trollers/configuration/zz_generated_controllers.go 38.1% <85.0%> (+3.3%) ⬆️
internal/dataplane/kongstate/kongstate.go 71.5% <100.0%> (+3.7%) ⬆️
internal/dataplane/parser/parser.go 84.8% <100.0%> (+2.1%) ⬆️
internal/manager/controllerdef.go 98.8% <100.0%> (+<0.1%) ⬆️

... and 6 files with indirect coverage changes

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

@programmer04 programmer04 force-pushed the kcg-populate-programmed branch 2 times, most recently from 8ec410b to bd84369 Compare July 28, 2023 11:50
@programmer04 programmer04 requested a review from pmalek July 28, 2023 11:51
@czeslavo
Copy link
Contributor

Can you please add KongConsumerGroup to the list of CRDs extended with Programmed condition in the last two changelog entries?

@programmer04
Copy link
Member Author

Good point @czeslavo, I've enhanced those entries

@programmer04 programmer04 merged commit 1d7296b into main Jul 28, 2023
31 checks passed
@programmer04 programmer04 deleted the kcg-populate-programmed branch July 28, 2023 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CRD Changes in existing CRDs or introduction of new ones area/feature New feature or request size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants