Skip to content

Conversation

@m1kola
Copy link
Member

@m1kola m1kola commented Mar 11, 2024

Description

We are not prepared to support the full surface area of the Carvel APIs at the moment and want to put admission webhook in place to make it harder to use Carvel APIs directly when installed together with OLM.

The plan is to only accept create, update and delete operations from operator-controller and kapp-controller service accounts. This will apply to all resources in the following groups:

  • internal.packaging.carvel.dev
  • kappctrl.k14s.io
  • packaging.carvel.dev

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 11, 2024
@m1kola m1kola force-pushed the kapp-webhook branch 6 times, most recently from 27cdc1c to a207d16 Compare March 13, 2024 10:24
@netlify
Copy link

netlify bot commented Mar 13, 2024

Deploy Preview for olmv1 failed.

Name Link
🔨 Latest commit 4383169
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/65f1b92bd2a1b80008430ce6

@codecov
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 44.82759% with 16 lines in your changes are missing coverage. Please review.

Project coverage is 63.61%. Comparing base (47fd760) to head (4383169).

Files Patch % Lines
internal/webhook/kappcrsuserinfo.go 37.50% 10 Missing ⚠️
cmd/manager/main.go 53.84% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #689      +/-   ##
==========================================
- Coverage   64.01%   63.61%   -0.40%     
==========================================
  Files          22       23       +1     
  Lines        1370     1399      +29     
==========================================
+ Hits          877      890      +13     
- Misses        442      457      +15     
- Partials       51       52       +1     
Flag Coverage Δ
e2e 47.31% <44.82%> (-0.06%) ⬇️
unit 58.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Mikalai Radchuk added 2 commits March 13, 2024 14:49
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
TMP
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
@m1kola
Copy link
Member Author

m1kola commented Mar 14, 2024

We decided to not restrict use of Carvel APIs upstream for now. Closing

@m1kola m1kola closed this Mar 14, 2024
@m1kola m1kola deleted the kapp-webhook branch March 14, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant