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 pod security context #1889

Merged
merged 3 commits into from
Jul 26, 2023
Merged

Conversation

matejvasek
Copy link
Contributor

@matejvasek matejvasek commented Jul 26, 2023

Changes

  • πŸ—‘οΈ Reverted commit: "Use jobs not plain pods for auxiliary tasks".
  • πŸ—‘οΈ Removed openshift package and moved functionality elsewhere to avoid circular package dependencies.
  • πŸ› Fix pod security context -- set uid,git,fsgropu only on non-OpenShift.

This is needed to avoid circular package dependencies.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
@knative-prow
Copy link

knative-prow bot commented Jul 26, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 26, 2023
@knative-prow knative-prow bot requested review from rhuss and vyasgun July 26, 2023 15:18
@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 26, 2023
@matejvasek matejvasek requested review from jrangelramos and removed request for rhuss and vyasgun July 26, 2023 15:18
@knative-prow
Copy link

knative-prow bot commented Jul 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matejvasek

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 26, 2023
@matejvasek matejvasek requested a review from lance July 26, 2023 15:18
@matejvasek
Copy link
Contributor Author

PTAL @grafvonb

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Patch coverage: 70.00% and project coverage change: -2.06% ⚠️

Comparison is base (a2834c2) 61.95% compared to head (23b9b32) 59.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1889      +/-   ##
==========================================
- Coverage   61.95%   59.90%   -2.06%     
==========================================
  Files         106      106              
  Lines       13801    13802       +1     
==========================================
- Hits         8551     8268     -283     
- Misses       4397     4686     +289     
+ Partials      853      848       -5     
Flag Coverage Ξ”
e2e-test ?
e2e-test-oncluster 30.75% <53.33%> (+0.04%) ⬆️
e2e-test-oncluster-runtime 25.66% <8.66%> (?)
integration-tests 51.47% <63.33%> (+2.21%) ⬆️
unit-tests-macos-latest ?
unit-tests-ubuntu-latest 49.46% <1.33%> (-0.54%) ⬇️
unit-tests-windows-latest ?

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

Files Changed Coverage Ξ”
pkg/config/config.go 85.09% <0.00%> (ΓΈ)
pkg/k8s/openshift.go 17.69% <10.34%> (ΓΈ)
pkg/http/openshift.go 44.44% <44.44%> (ΓΈ)
cmd/client.go 88.75% <50.00%> (ΓΈ)
pkg/k8s/security_context.go 89.28% <89.28%> (ΓΈ)
pkg/k8s/dialer.go 78.48% <94.44%> (+1.24%) ⬆️
pkg/k8s/persistent_volumes.go 71.79% <100.00%> (+1.12%) ⬆️

... and 23 files with indirect coverage changes

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@grafvonb
Copy link
Contributor

@matejvasek lgtm, it works as expected. The current version from main does not.

❯ ./func deploy --remote -v -p func-node-11-remote
Creating Pipeline resources
Running Pipeline Task: Building function image on the cluster
Running Pipeline Task: Deploying function to the cluster
βœ… Function deployed in namespace "knative-func" and exposed at URL: 
   http://func-node-11-remote.knative-func.52.29.113.237.sslip.io

@matejvasek matejvasek marked this pull request as ready for review July 26, 2023 16:11
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 26, 2023
@knative-prow knative-prow bot requested a review from dsimansk July 26, 2023 16:11
@matejvasek matejvasek requested a review from salaboy July 26, 2023 16:11
@matejvasek
Copy link
Contributor Author

PTAL @jrangelramos @lance

Copy link
Member

@lance lance left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 26, 2023
@matejvasek
Copy link
Contributor Author

@lance this requires test override.

@lance
Copy link
Member

lance commented Jul 26, 2023

/override "Unit Test (1.20.2, 17, windows-latest)"

@knative-prow
Copy link

knative-prow bot commented Jul 26, 2023

@lance: Overrode contexts on behalf of lance: Unit Test (1.20.2, 17, windows-latest)

In response to this:

/override "Unit Test (1.20.2, 17, windows-latest)"

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.

@knative-prow knative-prow bot merged commit a270f9e into knative:main Jul 26, 2023
37 of 38 checks passed
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants