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: vap update to reduce operations, v1beta1, and fail open #397

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

ritazh
Copy link
Member

@ritazh ritazh commented Feb 17, 2024

No description provided.

@ritazh ritazh force-pushed the vap-operations-failpolicy branch from 03be6f6 to fe02898 Compare February 17, 2024 00:11
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (930072e) 54.68% compared to head (fe02898) 54.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     open-policy-agent/frameworks#397      +/-   ##
==========================================
- Coverage   54.68%   54.68%   -0.01%     
==========================================
  Files          71       71              
  Lines        5239     5241       +2     
==========================================
+ Hits         2865     2866       +1     
- Misses       2072     2073       +1     
  Partials      302      302              
Flag Coverage Δ
unittests 54.68% <ø> (-0.01%) ⬇️

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.

Operations: []admissionregistrationv1alpha1.OperationType{admissionregistrationv1alpha1.OperationAll},
Rule: admissionregistrationv1alpha1.Rule{APIGroups: []string{"*"}, APIVersions: []string{"*"}, Resources: []string{"*"}},
RuleWithOperations: admissionregistrationv1beta1.RuleWithOperations{
/// TODO(ritazh): default for now until we can safely expose these to users
Copy link
Member

@sozercan sozercan Feb 17, 2024

Choose a reason for hiding this comment

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

please create an issue or add to an existing tracking issue so we dont forget this

Copy link
Member Author

Choose a reason for hiding this comment

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

func (in *Source) GetV1alpha1FailurePolicy() (*admissionv1alpha1.FailurePolicyType, error) {
func (in *Source) GetV1Beta1FailurePolicy() (*admissionv1beta1.FailurePolicyType, error) {
var out admissionv1beta1.FailurePolicyType
/// TODO(ritazh): default for now until the feature is safe to fail close
Copy link
Member

Choose a reason for hiding this comment

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

same here

@ritazh ritazh merged commit 76869f8 into open-policy-agent:master Feb 19, 2024
4 checks passed
@ritazh ritazh deleted the vap-operations-failpolicy branch February 19, 2024 19:22
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.

4 participants