• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / minder / 9562714954
53%

Build:
DEFAULT BRANCH: main
Ran 18 Jun 2024 09:46AM UTC
Jobs 1
Files 199
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jun 2024 09:39AM UTC coverage: 53.296% (-0.1%) from 53.4%
9562714954

push

github

web-flow
Updating provider config (#3468)

* Protobuf changes for providers update

This merely adds the PatchProvider rpc changes to keep the other patches
in the same PR minimal and don't mix the RPC changes with the logic
changes.

* Extend the ProviderStore with an Update method, so far only allows updating config

The providerStore.Update method only exposes the new config as a
parameter to change. Others might be added as we have a use-case for
them - this is not public API.

* Add a PatchProvider server handler, currently just updating the config

Building atop the providerStore.Update method, we add a PatchProvider
handler that so far only allows updating the config.

* Treat the provider config as an override, keep the defaults in the code

Since storing the whole config in the database is problematic for a
number of reasons, like hard patching or worse ability to change
defaults, let's change the way we treat the provider configuration in
the database. Instead of storing the full config, we treat the provider
config as an override. To that end, we store a structure with defaults
in the code and make all the fields in the protobuf messages optional
which causes the resulting Go structures to have pointers to fields
instead of direct attributes.

We store the config override verbatim, after just having unmarshalled
and marshalled back to get rid of any extra keys. Then we merge with the
default config on retrieving the provider configuration from the
database.

97 of 163 new or added lines in 13 files covered. (59.51%)

13 existing lines in 4 files now uncovered.

10714 of 20103 relevant lines covered (53.3%)

52.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9562714954.1 18 Jun 2024 09:46AM UTC 0
53.3
GitHub Action Run
Source Files on build 9562714954
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #9562714954
  • 67208c5b on github
  • Prev Build on main (#9562416552)
  • Next Build on main (#9577829732)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc