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: sharded Warehouse cross-controller access #2819

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

hiddeco
Copy link
Contributor

@hiddeco hiddeco commented Oct 23, 2024

Allow Warehouse resources to be accessible by all controllers in a sharded setup, while still being handled by one controller at a time.

Note: This assumes that only other controller instances desire to access Warehouses. If there is another case of sharding where other kinds are expected to be handled by shard X but able to be "seen" by shard Z, this will still not work.

Allow Warehouse resources to be accessible by all controllers in
a sharded setup, while still being handled by one controller at
a time.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@hiddeco hiddeco requested a review from a team as a code owner October 23, 2024 06:54
Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit 0480857
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-io/deploys/67189db61be84b00085feae7
😎 Deploy Preview https://deploy-preview-2819.docs.kargo.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Oct 23, 2024

Codecov Report

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

Project coverage is 48.82%. Comparing base (78510b8) to head (0480857).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd/controlplane/controller.go 0.00% 6 Missing ⚠️
internal/controller/warehouses/warehouses.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2819      +/-   ##
==========================================
- Coverage   48.84%   48.82%   -0.02%     
==========================================
  Files         270      270              
  Lines       23934    23941       +7     
==========================================
  Hits        11690    11690              
- Misses      11613    11620       +7     
  Partials      631      631              

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

@hiddeco hiddeco enabled auto-merge October 23, 2024 07:02
@hiddeco hiddeco added this pull request to the merge queue Oct 23, 2024
Merged via the queue into akuity:main with commit 7490ff2 Oct 23, 2024
25 of 27 checks passed
@hiddeco hiddeco deleted the fix-warehouse-shard branch October 23, 2024 07:17
github-actions bot pushed a commit that referenced this pull request Oct 23, 2024
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
(cherry picked from commit 7490ff2)
@akuitybot
Copy link

Successfully created backport PR for release-1.0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants