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

LOG-3302: Update scc to desired #1806

Merged
merged 1 commit into from Jan 5, 2023

Conversation

jcantrill
Copy link
Contributor

Description

This PR:

  • fixes updating by Updating the current SCC to desired

Links

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 3, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jcantrill

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 3, 2023
@jcantrill
Copy link
Contributor Author

/cherrypick master

@openshift-cherrypick-robot

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

In response to this:

/cherrypick master

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.

@jcantrill
Copy link
Contributor Author

/cherrypick release-5.5

@openshift-cherrypick-robot

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

In response to this:

/cherrypick release-5.5

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 4, 2023

@jcantrill: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-ocp-next 13407ba link false /test e2e-ocp-next
ci/prow/e2e-ocp-previous 13407ba link false /test e2e-ocp-previous

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Comment on lines +36 to +61
to.Labels = from.Labels
to.Priority = from.Priority
to.AllowPrivilegedContainer = from.AllowPrivilegedContainer
to.DefaultAddCapabilities = from.DefaultAddCapabilities
to.RequiredDropCapabilities = from.RequiredDropCapabilities
to.AllowedCapabilities = from.AllowedCapabilities
to.AllowHostDirVolumePlugin = from.AllowHostDirVolumePlugin
to.Volumes = from.Volumes
to.AllowedFlexVolumes = from.AllowedFlexVolumes
to.AllowHostNetwork = from.AllowHostNetwork
to.AllowHostPorts = from.AllowHostPorts
to.AllowHostPID = from.AllowHostPID
to.AllowHostIPC = from.AllowHostIPC
to.DefaultAllowPrivilegeEscalation = from.DefaultAllowPrivilegeEscalation
to.AllowPrivilegeEscalation = from.AllowPrivilegeEscalation
to.SELinuxContext = from.SELinuxContext
to.RunAsUser = from.RunAsUser
to.SupplementalGroups = from.SupplementalGroups
to.FSGroup = from.FSGroup
to.ReadOnlyRootFilesystem = from.ReadOnlyRootFilesystem
to.Users = from.Users
to.Groups = from.Groups
to.SeccompProfiles = from.SeccompProfiles
to.AllowedUnsafeSysctls = from.AllowedUnsafeSysctls
to.ForbiddenSysctls = from.ForbiddenSysctls

Copy link
Contributor

Choose a reason for hiding this comment

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

can we replace this block with *to=*from if all fields are to be copied?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SCCs don't have a "spec" field, they live off the root of the type. The only change we possibly could make is to use reflection over the fields

Copy link
Contributor

Choose a reason for hiding this comment

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

agree. a *to=*from would copy more fields than we need.

@vimalk78
Copy link
Contributor

vimalk78 commented Jan 5, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 5, 2023
@openshift-merge-robot openshift-merge-robot merged commit f321d13 into openshift:release-5.6 Jan 5, 2023
@openshift-cherrypick-robot

@jcantrill: new pull request created: #1815

In response to this:

/cherrypick master

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.

@openshift-cherrypick-robot

@jcantrill: new pull request created: #1816

In response to this:

/cherrypick release-5.5

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.

@jcantrill jcantrill deleted the log3302b branch January 5, 2023 21:08
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. release/5.6
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants