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

Register audit/v1beta1 for master config #18811

Merged
merged 2 commits into from
Mar 8, 2018

Conversation

soltysh
Copy link
Contributor

@soltysh soltysh commented Mar 2, 2018

Fixes #18752.

/assign @deads2k
/cherry-pick 3.9

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 2, 2018
@soltysh
Copy link
Contributor Author

soltysh commented Mar 2, 2018

This and #18751 are needed in 3.9

@soltysh
Copy link
Contributor Author

soltysh commented Mar 2, 2018

/cherrypick release-3.9

@openshift-cherrypick-robot

@soltysh: once the present PR merges, I will cherry-pick it on top of release-3.9 in a new PR and assign it to you.

In response to this:

/cherrypick release-3.9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@@ -242,7 +242,7 @@ func ValidateAuditConfig(config configapi.AuditConfig, fldPath *field.Path) Vali
} else {
policyConfiguration, ok := config.PolicyConfiguration.(*auditinternal.Policy)
if !ok {
validationResults.AddErrors(field.Invalid(fldPath.Child("policyConfiguration"), config.PolicyConfiguration, "must be of type audit/v1alpha1.Policy"))
Copy link
Contributor

Choose a reason for hiding this comment

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

message is wrong. it should allow both.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you have audit/v1alpha1 it won't complain. If you don't I'd prefer you use v1beta1, that's why I went with that.

@deads2k
Copy link
Contributor

deads2k commented Mar 2, 2018

Once bitten deserves a test I'd think. That would also ensure my other fixes don't accidentally regress. test-integration will let you wire it to a file and to an embedded.

@soltysh
Copy link
Contributor Author

soltysh commented Mar 2, 2018

Yeah, I agree with the test, will add one on Monday.

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 5, 2018
@soltysh
Copy link
Contributor Author

soltysh commented Mar 5, 2018

/retest

@soltysh
Copy link
Contributor Author

soltysh commented Mar 5, 2018

@deads2k I've added the tests you've asked for, ptal

@deads2k
Copy link
Contributor

deads2k commented Mar 5, 2018

Doesn't work, but

/lgtm

As long as the tests stay.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 5, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, soltysh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 5, 2018
@soltysh soltysh added this to the 3.9.0 milestone Mar 6, 2018
@openshift-merge-robot openshift-merge-robot removed the lgtm Indicates that a PR is ready to be merged. label Mar 6, 2018
@soltysh
Copy link
Contributor Author

soltysh commented Mar 6, 2018

As long as the tests stay.

I had to change that embed tests to use internal types only, not sure why or how but it works just fine for me locally, but failed (which I'd expect) on our CI.

@soltysh soltysh added the lgtm Indicates that a PR is ready to be merged. label Mar 6, 2018
@soltysh
Copy link
Contributor Author

soltysh commented Mar 7, 2018

/retest

1 similar comment
@soltysh
Copy link
Contributor Author

soltysh commented Mar 7, 2018

/retest

@soltysh
Copy link
Contributor Author

soltysh commented Mar 7, 2018

/test gcp

@soltysh
Copy link
Contributor Author

soltysh commented Mar 7, 2018

/test extended_networking_minimal

@eparis
Copy link
Member

eparis commented Mar 7, 2018

/retest

1 similar comment
@soltysh
Copy link
Contributor Author

soltysh commented Mar 8, 2018

/retest

@openshift-merge-robot
Copy link
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue.

@openshift-cherrypick-robot

@soltysh: new pull request created: #18893

In response to this:

/cherrypick release-3.9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@soltysh soltysh deleted the issue18752 branch March 8, 2018 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants