Skip to content

Conversation

@skonto
Copy link

@skonto skonto commented Jan 20, 2023

oc adm must-gather -- /usr/bin/gather_audit_logs
cd must-gather.local....
gunzip -r *
find ./ -type f -exec grep -l "violation" {} \; | xargs cat | grep violation
  • Introduces "serving.knative.openshift.io/skipSeccompProfile" as a revision annotation that allows to skip setting seccomProfile for a service so it can run with the default image user. Since we support versions < 4.11 SeccompProfile is only set by default in versions > 4.10.

@openshift-ci openshift-ci bot requested review from mgencur and mvinkler January 20, 2023 09:04
@openshift-ci
Copy link

openshift-ci bot commented Jan 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: skonto

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

The pull request process is described here

Details 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

@skonto
Copy link
Author

skonto commented Jan 20, 2023

/hold

@skonto skonto changed the title [TEST-ONLY] [WIP] Test sec default no byo [TEST-ONLY] [WIP] Test sec default Jan 21, 2023
@skonto
Copy link
Author

skonto commented Jan 23, 2023

The problematic test now passed. Will unblock the rest.

@skonto
Copy link
Author

skonto commented Jan 24, 2023

Now that all tests pass I will test again without the capabilities flag as upstream tests pass without it.

@skonto
Copy link
Author

skonto commented Feb 16, 2023

/retest

@skonto
Copy link
Author

skonto commented Feb 16, 2023

/test 48-e2e-aws-ocp-48

@openshift-ci
Copy link

openshift-ci bot commented Feb 16, 2023

@skonto: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

  • /test 410-e2e-aws-ocp-410
  • /test 410-images
  • /test 411-e2e-aws-ocp-411
  • /test 411-images
  • /test 48-e2e-aws-ocp-48
  • /test 48-images
  • /test 49-e2e-aws-ocp-49
  • /test 49-images

Use /test all to run all jobs.

Details

In response to this:

/retest 48-e2e-aws-ocp-48

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.

@skonto
Copy link
Author

skonto commented Feb 16, 2023

/test 48-e2e-aws-ocp-48

@skonto
Copy link
Author

skonto commented Feb 23, 2023

/retest

2 similar comments
@skonto
Copy link
Author

skonto commented Feb 23, 2023

/retest

@skonto
Copy link
Author

skonto commented Feb 23, 2023

/retest

@skonto skonto changed the title [TEST-ONLY] [WIP] Test sec default [RELEASE-1.7][SRVKS-985] Add revision security defaults Feb 28, 2023
@skonto skonto changed the title [RELEASE-1.7][SRVKS-985] Add revision security defaults [TEST-ONLY] [WIP] Test sec default Feb 28, 2023
CheckK8sClientMinimumVersionOrDie(ctx, logger)
// HACK: should go away when we move away from < 4.11 releases
if err := CheckMinimumKubeVersion(kubeclient.Get(ctx).Discovery(), "1.24.0"); err == nil {
os.Setenv("OCP_SECCOMP_PROFILE_WITHOUT_SCC", "true")
Copy link
Member

Choose a reason for hiding this comment

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

@skonto is that our env-var? If so, I'd prefix it slightly different, to not confuse w/ actual OCP bits


CheckK8sClientMinimumVersionOrDie(ctx, logger)
// HACK: should go away when we move away from < 4.11 releases
if err := CheckMinimumKubeVersion(kubeclient.Get(ctx).Discovery(), "1.24.0"); err == nil {
Copy link
Member

Choose a reason for hiding this comment

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

why on this file?

the pkg/version has already the normalizeVersion func


CheckK8sClientMinimumVersionOrDie(ctx, logger)
// HACK: should go away when we move away from < 4.11 releases
if err := CheckMinimumKubeVersion(kubeclient.Get(ctx).Discovery(), "1.24.0"); err == nil {
Copy link
Member

Choose a reason for hiding this comment

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

let's just hard-code against 1.24?


// CheckMinimumKubeVersion checks if current K8s version we are on is higher than the one passed.
// If an error is returned then the version is not higher than the minimum
func CheckMinimumKubeVersion(versioner discovery.ServerVersionInterface, version string) error {
Copy link
Member

Choose a reason for hiding this comment

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

we can remove the version ? since we anyways want to check here for 1.24.0

@skonto
Copy link
Author

skonto commented Mar 1, 2023

/test 411-e2e-aws-ocp-411

@skonto skonto closed this Mar 3, 2023
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.

2 participants